Properties

backgroundColor string white

Sets the background color of the qrcode element.

Code example:

$('#myBarcode').jqxBarcode({backgroundColor: yellow});

displayLabel boolean true

Sets whether the qrcode label is visible.

Code example:

$('#myBarcode').jqxBarcode({displayLabel: true});

labelColor string black

Sets the color of the qrcode label.

Code example:

$('#myBarcode').jqxBarcode({labelColor: red});

labelFont string monospace

Sets the font family of the qrcode label.

Code example:

$('#myBarcode').jqxBarcode({labelFont: monospace});

labelFontSize number 14

Sets the font size of the qrcode label.

Code example:

$('#myBarcode').jqxBarcode({labelFontSize: 16});

labelMarginBottom number 5

Sets the bottom margin of the qrcode label.

Code example:

$('#myBarcode').jqxBarcode({labelMarginBottom: 30});

labelMarginTop number 5

Sets the top margin of the qrcode label.

Code example:

$('#myBarcode').jqxBarcode({labelMarginTop: 30});

labelPosition string bottom

Sets the position of the qrcode label.

Code example:

$('#myBarcode').jqxBarcode({labelPosition: top});

lineColor string black

Sets the color of the qrcode lines.

Code example:

$('#myBarcode').jqxBarcode({lineColor: red});

lineHeight number 50

Sets the height of the qrcode line.

Code example:

$('#myBarcode').jqxBarcode({lineHeight: 50});

lineWidth number 4

Sets the width of the qrcode line.

Code example:

$('#myBarcode').jqxBarcode({lineWidth: 7});

renderAs string svg

Sets the rendering mode of the qrcode.

Code example:

$('#myBarcode').jqxBarcode({renderAs: canvas});

type string codabar

Sets the qrcode type

Code example:

$('#myBarcode').jqxBarcode({type: code128a});

value string

Sets or gets the value of the qrcode.

Code example:

$('#myBarcode').jqxBarcode({value: example});

Events

invalid Event

This event is triggered when the value of the qrcode is invalid.

Methods

export Method

Exports the qrcode.

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 qrcode

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 qrcode

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 qrcode

Parameters
None

Return Value
boolean

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