Skip to main content

QRCode

Props

AttributeDescriptionTypeDefault
sizeSets the size for the component.number10
contentText to be encoded in the QR code. This prop is mandatory.string'https://studio.onplateau.com/quick/'
levelError correction level of the QR code. Supported types: 'LOW', 'MEDIUM', 'QUARTILE', 'HIGH'.string'LOW'
visibleVisibility of QRCode component.booleantrue

Events

AttributeDescription
onLoadEvent emitted when loaded.

Methods

Methods NameDescriptionExample Code
setPropsChanges the values of size, content, level props.(<any>components.myQrCode).setProps({size: 20,content:"dsad",level:'LOW'});
getQRCodeGets QrCode code information as a data:image/png;base64 string. Then you can download as png file.let qrCodeBase64String = (<any>components.myQrCode).getQRCode(); quick.download({data:qrCodeBase64String , name:"qrCode.png"});

Samples Component


Samples Qjson

QRCode