Search results

QRCodeGeneratorComponent

QRCode Component

<ej-qrcode-generator></ej-qrcode-generator>

Properties

backgroundColor

string

Defines the background color of the QR code.

Defaults to ‘white’

displayText

DisplayTextModel

Defines the text properties for the QR code.

Defaults to

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads.

Defaults to false

enableRtl

boolean

Enable or disable rendering component in right to left direction.

Defaults to false

errorCorrectionLevel

ErrorCorrectionLevel

Defines the error correction level of the QR code.

Defaults to undefined

foreColor

string

Defines the forecolor of the QR code.

Defaults to ‘black’

height

string | number

Defines the height of the QR code model.

Defaults to ‘100%’

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

Defaults to

margin

MarginModel

Defines the margin properties for the QR code.

Defaults to

mode

string

Defines the QR code rendering mode.

  • SVG - Renders the bar-code objects as SVG elements
  • Canvas - Renders the bar-code in a canvas

Defaults to ‘SVG’

value

string

Defines the type of barcode to be rendered.

Defaults to undefined

version

QRCodeVersion

  • Defines the version of the QR code.

Defaults to undefined

width

string | number

Defines the width of the QR code model.

Defaults to ‘100%’

xDimension

number

Defines the xDimension of the QR code model.

Methods

destroy

Destroys the barcode control

Returns void

exportAsBase64Image

Export the qrcode as an image in the specified image type and returns it as base64 string. @param {BarcodeExportType} barcodeExportType - Defines the format of the qrcode to be exported

Returns Promise

exportImage

Export the qrcode as an image in the specified image type and downloads it in the browser. @param {string} fileName - Specifies the filename of the qrcode image to be download. @param {BarcodeExportType} barcodeExportType - Defines the format of the qrcode to be exported

Returns void

getModuleName

Returns the module name of the barcode

Returns string

getPersistData

Get the properties to be maintained in the persisted state.

Returns string

render

Renders the barcode control with nodes and connectors

Returns void

Events

invalid

EmitType<Object>

Triggers if you enter any invalid character.