IBarcodeVariable Interface

A structure representing a variable barcode item in a product.

example
editor.getProduct()
    // If we have successfully obtained the product.
    .then(function (product) {
        return product.getVariableItems();
    })
    // If we have successfully obtained an item list.
    .then(function (items) {
        if (items.length)
            items.forEach(function (item) {
                console.log(item.name);
            });
        else
            console.log("This product contains no variable items.");
    });

Properties

barcodeFormat

barcodeFormat: BarcodeFormat

The format of a variable barcode.

barcodeSubType

barcodeSubType: BarcodeSubType

The subtype of a variable barcode.

name

name: string

The name of a variable item.

type

type: "BarcodePlaceholder"

Optional value

value: string

The value of a variable item. For texts, it is the content. For in-string placeholders, it is either entered text or default value. For barcodes, it is a string with the content.