Search results

BarcodeModel API in Vue Barcode API component

Interface for a class Barcode

Properties

invalid

EmitType<Object>

Triggers if we entered any invalid character

backgroundColor

string

Defines the background color of the bar code

displayText

DisplayTextModel

Defines the type of barcode to be rendered.

enableCheckSum

boolean

Defines the type of barcode to be rendered.

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 background color of the bar code

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 type of barcode to be rendered.

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

type

type

Defines the type of barcode to be rendered.

value

string

Defines the type of 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');