Usage ‐ Barcode - Attacler/TextToAnything-Directus GitHub Wiki

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,
});