Properties

backgroundColor string white

Sets the background color of the QR Code element.

Code example:

$('#myQRcode').jqxQRcode({backgroundColor: yellow});

displayLabel boolean

Sets whether the QR Code label is visible.

Code example:

$('#myQRcode').jqxQRcode({displayLabel: true});

embedImage string

Sets an embedded image.

Code example:

$('#myQRcode').jqxQRcode({embedImage: L});

errorLevel string H

Sets the error correction level.

Code example:

$('#myQRcode').jqxQRcode({errorLevel: L});

imageHeight number 15

Sets the height of the embedded image.

Code example:

$('#myQRcode').jqxQRcode({imageHeight: 30});

imageWidth number 15

Sets the width of the embedded image.

Code example:

$('#myQRcode').jqxQRcode({imageWidth: 30});

labelColor string black

Sets the color of the QR Code label.

Code example:

$('#myQRcode').jqxQRcode({labelColor: red});

labelFont string monospace

Sets the font family of the QR Code label.

Code example:

$('#myQRcode').jqxQRcode({labelFont: monospace});

labelFontSize number 14

Sets the font size of the QR Code label.

Code example:

$('#myQRcode').jqxQRcode({labelFontSize: 16});

labelMarginBottom number 5

Sets the bottom margin of the QR Code label.

Code example:

$('#myQRcode').jqxQRcode({labelMarginBottom: 16});

labelMarginTop number 5

Sets the top margin of the QR Code label.

Code example:

$('#myQRcode').jqxQRcode({labelMarginTop: 16});

labelPosition string bottom

Sets the position of the QR Code label.

Code example:

$('#myQRcode').jqxQRcode({labelPosition: bottom});

lineColor string black

Sets the color of the QR Code lines.

Code example:

$('#myQRcode').jqxQRcode({lineColor: black});

squareWidth number 7

Sets the width of the QR Code square.

Code example:

$('#myQRcode').jqxQRcode({squareWidth: 9});

renderAs string svg

Sets the rendering mode of the QR Code.

Code example:

$('#myQRcode').jqxQRcode({renderAs: svg});

value string

Sets or gets the value of the QR Code.

Code example:

$('#myQRcode').jqxQRcode({value: example});

Events

invalid Event

This event is triggered when the value of the QR Code is invalid.

Methods

export Method

Exports the QR Code.

Parameters
Name Type Description
format string The format of the exported file - svg, png, jpg
fileName string The name of the exported file

Return Value
None

getDataURL Method

Gets the base64 string of the QR Code

Parameters
Name Type Description
format string The dataURL format of the string - svg, png, jpg

Return Value
string

getDataURLAsync Method

Gets the base64 string of the QR Code

Parameters
Name Type Description
format string The dataURL format of the string - svg, png, jpg

Return Value
object

isValid Method

Gets the validity of the QR Code

Parameters
None

Return Value
boolean

AltStyle によって変換されたページ (->オリジナル) /