Skip to content

Usage ‐ Barcode

Bart Don edited this page Jan 2, 2024 · 2 revisions

Barcodes

Flows

To generate a barcode you can use our operation:

Any of the variables can be used in combination with the {{}} tags that Directus Flows supports by default.

Programmatically

You can also generate barcodes within Directus Hooks/Endpoints/Operations. This can be done trough globalThis.TTA.

An example usage:

const fileID = await globalThis.TTA.generateBarCode({
    "barcodeContent": "Your barcode content!",
    "barcodeType": "code128",
    "scale": 2,
    "height": 10,
    "includetext": true,
});
Clone this wiki locally