UNPKG

@syncfusion/ej2-barcode-generator

Version:

Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code.

56 lines (55 loc) 1.35 kB
import { ChildProperty } from '@syncfusion/ej2-base'; import { MarginModel } from './margin-model'; import { Alignment, TextPosition } from '../enum/enum'; /** * Defines the space to be left between an object and its immediate parent */ export declare class DisplayText extends ChildProperty<DisplayText> { /** * Sets the textual description of the barcode. * * @default '' */ text: string; /** * Defines the visibility of the text. * * @default true */ visibility: boolean; /** * Defines the font style of the text * * @default 'monospace' */ font: string; /** * Defines the size of the text. * * @default 20 */ size: number; /** * Sets the space to be left between the text and its barcode. * * @default '' */ margin: MarginModel; /** * Defines the horizontal alignment of the text. * * Left - Aligns the text at the left * * Right - Aligns the text at the Right * * Center - Aligns the text at the Center * * @default 'Center' */ alignment: Alignment; /** * Defines the position of the text. * * Bottom - Position the text at the Bottom * * Top - Position the text at the Top * * @default 'Bottom' */ position: TextPosition; }