v147 · Receipt Formatter
Receipt Formatter
Design a thermal receipt, preview the output, and run a receipt-safe Web Printing API simulation. The print flow mirrors window.printing.getPrinters(), WebPrinter.cachedAttributes(), WebPrinter.fetchAttributes(), WebPrinter.submitPrintJob(), WebPrintJob.attributes(), cancel(), and onjobstatechange.
| Item | Qty | Price £ |
|---|
API surface and failure modes
This lab uses a receipt-safe mock when the real API is unavailable outside an Isolated Web App. The method names and failure states match the current Web Printing draft: printer discovery, cached and fetched attributes, job submission, job-state events, explicit cancellation, and DataError rejection for unsupported print tickets.
see also
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗