Properties |
||||||||||||||
backgroundColor | string | white | ||||||||||||
Sets the background color of the qrcode element. Code example:
|
||||||||||||||
displayLabel | boolean | true | ||||||||||||
Sets whether the qrcode label is visible. Code example:
|
||||||||||||||
labelColor | string | black | ||||||||||||
Sets the color of the qrcode label. Code example:
|
||||||||||||||
labelFont | string | monospace | ||||||||||||
Sets the font family of the qrcode label. Code example:
|
||||||||||||||
labelFontSize | number | 14 | ||||||||||||
Sets the font size of the qrcode label. Code example:
|
||||||||||||||
labelMarginBottom | number | 5 | ||||||||||||
Sets the bottom margin of the qrcode label. Code example:
|
||||||||||||||
labelMarginTop | number | 5 | ||||||||||||
Sets the top margin of the qrcode label. Code example:
|
||||||||||||||
labelPosition | string | bottom | ||||||||||||
Sets the position of the qrcode label. Code example:
|
||||||||||||||
lineColor | string | black | ||||||||||||
Sets the color of the qrcode lines. Code example:
|
||||||||||||||
lineHeight | number | 50 | ||||||||||||
Sets the height of the qrcode line. Code example:
|
||||||||||||||
lineWidth | number | 4 | ||||||||||||
Sets the width of the qrcode line. Code example:
|
||||||||||||||
renderAs | string | svg | ||||||||||||
Sets the rendering mode of the qrcode. Code example:
|
||||||||||||||
type | string | codabar | ||||||||||||
Sets the qrcode type Code example:
|
||||||||||||||
value | string | |||||||||||||
Sets or gets the value of the qrcode. Code example:
|
||||||||||||||
Events |
||||||||||||||
invalid | Event | |||||||||||||
This event is triggered when the value of the qrcode is invalid. |
||||||||||||||
Methods |
||||||||||||||
export | Method | |||||||||||||
Exports the qrcode.
Return Value None |
||||||||||||||
getDataURL | Method | |||||||||||||
Gets the base64 string of the qrcode
Return Value string |
||||||||||||||
getDataURLAsync | Method | |||||||||||||
Gets the base64 string of the qrcode
Return Value object |
||||||||||||||
isValid | Method | |||||||||||||
Gets the validity of the qrcode
Return Value boolean |