Skip to main content

VariableItemHelper

Classes

VariableItemHelper

Constructors

Constructor
new VariableItemHelper(
productHandler,
canvas,
eventManager): VariableItemHelper;
Parameters
ParameterType
productHandlerProductHandler
canvasCanvas
eventManagerEventManager
Returns

VariableItemHelper

Properties

maskSymbol
maskSymbol: string = "%";

Methods

createNewItemName()
createNewItemName(item, newRealName): string;
Parameters
ParameterType
itemItem
newRealNamestring
Returns

string

getRealItemName()
getRealItemName(item): string;
Parameters
ParameterType
itemItem
Returns

string

getVariableItemDisplayName()
getVariableItemDisplayName(name): string;
Parameters
ParameterType
namestring
Returns

string

initVariableItem()
initVariableItem(item): void;
Parameters
ParameterType
itemBaseItem
Returns

void

initVariableItems()
initVariableItems(product): void;
Parameters
ParameterType
productProduct
Returns

void

setVariableValue()
setVariableValue(
item,
value,
supressUpdate?): void;
Parameters
ParameterType
itemItem
valueboolean
supressUpdate?boolean
Returns

void

setVariableValues()
setVariableValues(items, value): void;
Parameters
ParameterType
itemsItem[]
valueboolean
Returns

void

getInterpolationVariables()
static getInterpolationVariables(textItem): IInterpolationPlaceholderVariable[];
Parameters
ParameterType
textItemBaseTextItem
Returns

IInterpolationPlaceholderVariable[]

getVariablesFromBarcodeItem()
static getVariablesFromBarcodeItem(item, ignoreIsVariableMarker?): IBarcodeVariable[];
Parameters
ParameterTypeDefault value
itemBarcodeItemundefined
ignoreIsVariableMarkerbooleanfalse
Returns

IBarcodeVariable[]

getVariablesFromEllipseItem()
static getVariablesFromEllipseItem(item): IVariable[];
Parameters
ParameterType
itemEllipseItem
Returns

IVariable[]

getVariablesFromGroupItem()
static getVariablesFromGroupItem(item): IVariable[];
Parameters
ParameterType
itemGroupItem
Returns

IVariable[]

getVariablesFromImageItem()
static getVariablesFromImageItem(item): IVariable[];
Parameters
ParameterType
itemImageItem
Returns

IVariable[]

getVariablesFromItems()
static getVariablesFromItems(items): IVariable[];
Parameters
ParameterType
itemsBaseItem[]
Returns

IVariable[]

getVariablesFromLayoutItem()
static getVariablesFromLayoutItem(item): IVariable[];
Parameters
ParameterType
itemLayoutItem
Returns

IVariable[]

getVariablesFromPlaceholderItem()
static getVariablesFromPlaceholderItem(item): IVariable[];
Parameters
ParameterType
itemPlaceholderItem
Returns

IVariable[]

getVariablesFromRectangleItem()
static getVariablesFromRectangleItem(item): IVariable[];
Parameters
ParameterType
itemRectangleItem
Returns

IVariable[]

getVariablesFromShapeItem()
static getVariablesFromShapeItem(item): IVariable[];
Parameters
ParameterType
itemShapeItem
Returns

IVariable[]

getVariablesFromTextItem()
static getVariablesFromTextItem(item): IVariable[];
Parameters
ParameterType
itemBaseTextItem
Returns

IVariable[]

isInStringPlacehodler()
static isInStringPlacehodler(item): boolean;
Parameters
ParameterType
itemItem
Returns

boolean

Interfaces

IBarcodeVariable

Extends

Properties

barcodeFormat
barcodeFormat: BarcodeFormat;
barcodeSubType
barcodeSubType: BarcodeSubType;
name
name: string;
Inherited from

IVariable.name

type
type: "Barcode" | "BarcodePlaceholder";
Overrides

IVariable.type

value
value: string;
Inherited from

IVariable.value


IInterpolationPlaceholderVariable

Extends

Properties

mask
mask: string;
name
name: string;
Inherited from

IVariable.name

type
type:
| "Barcode"
| "BarcodePlaceholder"
| "Image"
| "ImagePlaceholder"
| "Text"
| "InString";
Inherited from

IVariable.type

value
value: string;
Inherited from

IVariable.value

values
values: string[];

IVariable

Extended by

Properties

name
name: string;
type
type:
| "Barcode"
| "BarcodePlaceholder"
| "Image"
| "ImagePlaceholder"
| "Text"
| "InString";
value
value: string;
Was this page helpful?