QRCode
Props
| Attribute | Description | Type | Default |
|---|---|---|---|
| size | Sets the size for the component. | number | 10 |
| content | Text to be encoded in the QR code. This prop is mandatory. | string | 'https://studio.onplateau.com/quick/' |
| level | Error correction level of the QR code. Supported types: 'LOW', 'MEDIUM', 'QUARTILE', 'HIGH'. | string | 'LOW' |
| visible | Visibility of QRCode component. | boolean | true |
Events
| Attribute | Description |
|---|---|
| onLoad | Event emitted when loaded. |
Methods
| Methods Name | Description | Example Code |
|---|---|---|
| setProps | Changes the values of size, content, level props. | (<any>components.myQrCode).setProps({size: 20,content:"dsad",level:'LOW'}); |
| getQRCode | Gets 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"}); |