Search results

BarcodeComponent

Represents react Barcode Component

<BarcodeComponent></BarcodeComponent>

Properties

backgroundColor

string

Defines the background color of the bar code

Defaults to ‘white’

displayText

DisplayTextModel

Defines the type of barcode to be rendered.

Defaults to

enableCheckSum

boolean

Defines the type of barcode to be rendered.

Defaults to ‘true’

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

foreColor

string

Defines the background color of the bar code

Defaults to ‘black’

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');

Defaults to ‘100’

locale

string

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

Defaults to ‘undefined’

margin

MarginModel

Defines the type of barcode to be rendered.

Defaults to

mode

string

Defines the bar-code rendering mode.

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

Defaults to ‘SVG’

type

type

Defines the type of barcode to be rendered.

Defaults to ‘Code128’

value

string

Defines the type of barcode to be rendered.

Defaults to ‘undefined’

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');

Defaults to ‘100%’

Methods

destroy

Destroys the barcode control

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

Events

invalid

EmitType<Object>

Triggers if we entered any invalid character