Properties |
||||||||||||||
backgroundColor | string | white | ||||||||||||
Sets the background color of the QR Code element. Code example:
|
||||||||||||||
displayLabel | boolean | |||||||||||||
Sets whether the QR Code label is visible. Code example:
|
||||||||||||||
embedImage | string | |||||||||||||
Sets an embedded image. Code example:
|
||||||||||||||
errorLevel | string | H | ||||||||||||
Sets the error correction level. Code example:
|
||||||||||||||
imageHeight | number | 15 | ||||||||||||
Sets the height of the embedded image. Code example:
|
||||||||||||||
imageWidth | number | 15 | ||||||||||||
Sets the width of the embedded image. Code example:
|
||||||||||||||
labelColor | string | black | ||||||||||||
Sets the color of the QR Code label. Code example:
|
||||||||||||||
labelFont | string | monospace | ||||||||||||
Sets the font family of the QR Code label. Code example:
|
||||||||||||||
labelFontSize | number | 14 | ||||||||||||
Sets the font size of the QR Code label. Code example:
|
||||||||||||||
labelMarginBottom | number | 5 | ||||||||||||
Sets the bottom margin of the QR Code label. Code example:
|
||||||||||||||
labelMarginTop | number | 5 | ||||||||||||
Sets the top margin of the QR Code label. Code example:
|
||||||||||||||
labelPosition | string | bottom | ||||||||||||
Sets the position of the QR Code label. Code example:
|
||||||||||||||
lineColor | string | black | ||||||||||||
Sets the color of the QR Code lines. Code example:
|
||||||||||||||
squareWidth | number | 7 | ||||||||||||
Sets the width of the QR Code square. Code example:
|
||||||||||||||
renderAs | string | svg | ||||||||||||
Sets the rendering mode of the QR Code. Code example:
|
||||||||||||||
value | string | |||||||||||||
Sets or gets the value of the QR Code. Code example:
|
||||||||||||||
Events |
||||||||||||||
invalid | Event | |||||||||||||
This event is triggered when the value of the QR Code is invalid. |
||||||||||||||
Methods |
||||||||||||||
export | Method | |||||||||||||
Exports the QR Code.
Return Value None |
||||||||||||||
getDataURL | Method | |||||||||||||
Gets the base64 string of the QR Code
Return Value string |
||||||||||||||
getDataURLAsync | Method | |||||||||||||
Gets the base64 string of the QR Code
Return Value object |
||||||||||||||
isValid | Method | |||||||||||||
Gets the validity of the QR Code
Return Value boolean |