UNPKG

ngx-barcode

Version:

An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode

50 lines (49 loc) 1.67 kB
import { OnChanges, Renderer2, ElementRef } from '@angular/core'; export declare class NgxBarcodeComponent implements OnChanges { private renderer; elementType: 'svg' | 'img' | 'canvas'; cssClass: string; format: '' | 'CODE128' | 'CODE128A' | 'CODE128B' | 'CODE128C' | 'EAN' | 'UPC' | 'EAN8' | 'EAN5' | 'EAN2' | 'CODE39' | 'ITF14' | 'MSI' | 'MSI10' | 'MSI11' | 'MSI1010' | 'MSI1110' | 'pharmacode' | 'codabar'; lineColor: string; width: number; height: number; displayValue: boolean; fontOptions: string; font: string; textAlign: string; textPosition: string; textMargin: number; fontSize: number; background: string; margin: number; marginTop: number; marginBottom: number; marginLeft: number; marginRight: number; value: string; bcElement: ElementRef; valid: () => boolean; readonly options: { format: "" | "CODE128" | "CODE128A" | "CODE128B" | "CODE128C" | "EAN" | "UPC" | "EAN8" | "EAN5" | "EAN2" | "CODE39" | "ITF14" | "MSI" | "MSI10" | "MSI11" | "MSI1010" | "MSI1110" | "pharmacode" | "codabar"; lineColor: string; width: number; height: number; displayValue: boolean; fontOptions: string; font: string; textAlign: string; textPosition: string; textMargin: number; fontSize: number; background: string; margin: number; marginTop: number; marginBottom: number; marginLeft: number; marginRight: number; valid: () => boolean; }; constructor(renderer: Renderer2); ngOnChanges(): void; createBarcode(): void; }