@82label/angular
v0.2.0
Published
Angular standalone component for 82label: label preview and printing (roll labels, Formtec A4 sheets, barcodes, QR codes) through the browser or the 82label Windows agent.
Readme
@82label/angular
82label Angular(17+) 독립 컴포넌트 — 롤 라벨·폼텍 A4 라벨지·바코드·QR 을 미리 보고 인쇄해요. 브라우저로 mm 그대로 인쇄하거나, 82label 출력 프로그램(Windows)으로 대화상자 없이 바로 인쇄해요. Angular (17+) standalone component for 82label: preview and print roll labels, Formtec A4 sheets, barcodes and QR codes, through the browser (mm-accurate) or silently through the 82label Windows agent.
npm i @82label/core @82label/angularimport { Component } from '@angular/core';
import { Label82Component, type PrintResult } from '@82label/angular';
@Component({
selector: 'app-labels',
standalone: true,
imports: [Label82Component],
template: `
<label-82-view #label template="tpl_abc123" [data]="rows" (printed)="done($event)"></label-82-view>
<button (click)="label.print()">라벨 인쇄</button>`,
})
export class LabelsComponent {
rows = [{ name: '사과', price: 12900 }];
done(r: PrintResult) { console.log(r.printed); }
}Add the stylesheet once (e.g. in angular.json styles): node_modules/@82label/core/dist/styles.css.
Inputs: template (object or id), data (row or rows), printer, mode (auto · agent · browser), startAt, copies, dpi, frames, base, preview, button (built-in print button text).
Outputs: printed (PrintResult), printError. Method: print(opts?). Assign a new template or data object to redraw the preview.
Without a component: await printLabels(template, rows, { mode: 'browser' }).
Docs: https://82label.app/docs/
License
MIT © 2nd Korea (세컨드코리아)
