BarcodeGeneratorModel

23 Sep 20251 minute to read

Interface for a class BarcodeGenerator

Properties

invalid EmitType<Object>

Triggers if you enter any invalid character.

backgroundColor string

Defines the background color of the barcode.

displayText DisplayTextModel

Defines the text properties for the barcode.

enableCheckSum boolean

Defines the checksum for the barcode.

enablePersistence boolean

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

enableRtl boolean

Enable or disable rendering component in right to left direction.

foreColor string

Defines the forecolor of the barcode.

height string|number

Defines the height of the barcode model.

<div id='barcode'/>
let barcode: Barcode = new Barcode({
height:'1000px', height:'500px' });
barcode.appendTo('#barcode');

locale string

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

margin MarginModel

Defines the margin properties for the barcode.

mode RenderingMode

Defines the barcode rendering mode.

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

type BarcodeType

Defines the type of barcode to be rendered.

value string

Defines the value of the barcode to be rendered.

width string|number

Defines the width of the barcode model.

<div id='barcode'/>
let barcode: Barcode = new Barcode({
width:'1000px', height:'500px' });
barcode.appendTo('#barcode');