VariableItemHelper
Classes
VariableItemHelper
Constructors
Constructor
new VariableItemHelper(
productHandler,
canvas,
eventManager): VariableItemHelper;
Parameters
| Parameter | Type |
|---|---|
productHandler | ProductHandler |
canvas | Canvas |
eventManager | EventManager |
Returns
Properties
maskSymbol
maskSymbol: string = "%";
Methods
createNewItemName()
createNewItemName(item, newRealName): string;
Parameters
| Parameter | Type |
|---|---|
item | Item |
newRealName | string |
Returns
string
getRealItemName()
getRealItemName(item): string;
Parameters
| Parameter | Type |
|---|---|
item | Item |
Returns
string
getVariableItemDisplayName()
getVariableItemDisplayName(name): string;
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
string
initVariableItem()
initVariableItem(item): void;
Parameters
| Parameter | Type |
|---|---|
item | BaseItem |
Returns
void
initVariableItems()
initVariableItems(product): void;
Parameters
| Parameter | Type |
|---|---|
product | Product |
Returns
void
setVariableValue()
setVariableValue(
item,
value,
supressUpdate?): void;
Parameters
| Parameter | Type |
|---|---|
item | Item |
value | boolean |
supressUpdate? | boolean |
Returns
void
setVariableValues()
setVariableValues(items, value): void;
Parameters
| Parameter | Type |
|---|---|
items | Item[] |
value | boolean |
Returns
void
getInterpolationVariables()
static getInterpolationVariables(textItem): IInterpolationPlaceholderVariable[];
Parameters
| Parameter | Type |
|---|---|
textItem | BaseTextItem |
Returns
IInterpolationPlaceholderVariable[]
getVariablesFromBarcodeItem()
static getVariablesFromBarcodeItem(item, ignoreIsVariableMarker?): IBarcodeVariable[];
Parameters
| Parameter | Type | Default value |
|---|---|---|
item | BarcodeItem | undefined |
ignoreIsVariableMarker | boolean | false |
Returns
getVariablesFromEllipseItem()
static getVariablesFromEllipseItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | EllipseItem |
Returns
getVariablesFromGroupItem()
static getVariablesFromGroupItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | GroupItem |
Returns
getVariablesFromImageItem()
static getVariablesFromImageItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | ImageItem |
Returns
getVariablesFromItems()
static getVariablesFromItems(items): IVariable[];
Parameters
| Parameter | Type |
|---|---|
items | BaseItem[] |
Returns
getVariablesFromLayoutItem()
static getVariablesFromLayoutItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | LayoutItem |
Returns
getVariablesFromPlaceholderItem()
static getVariablesFromPlaceholderItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | PlaceholderItem |
Returns
getVariablesFromRectangleItem()
static getVariablesFromRectangleItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | RectangleItem |
Returns
getVariablesFromShapeItem()
static getVariablesFromShapeItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | ShapeItem |
Returns
getVariablesFromTextItem()
static getVariablesFromTextItem(item): IVariable[];
Parameters
| Parameter | Type |
|---|---|
item | BaseTextItem |
Returns
isInStringPlacehodler()
static isInStringPlacehodler(item): boolean;
Parameters
| Parameter | Type |
|---|---|
item | Item |
Returns
boolean
Interfaces
IBarcodeVariable
Extends
Properties
barcodeFormat
barcodeFormat: BarcodeFormat;
barcodeSubType
barcodeSubType: BarcodeSubType;
name
name: string;
Inherited from
type
type: "Barcode" | "BarcodePlaceholder";
Overrides
value
value: string;
Inherited from
IInterpolationPlaceholderVariable
Extends
Properties
mask
mask: string;
name
name: string;
Inherited from
type
type:
| "Barcode"
| "BarcodePlaceholder"
| "Image"
| "ImagePlaceholder"
| "Text"
| "InString";
Inherited from
value
value: string;
Inherited from
values
values: string[];
IVariable
Extended by
Properties
name
name: string;
type
type:
| "Barcode"
| "BarcodePlaceholder"
| "Image"
| "ImagePlaceholder"
| "Text"
| "InString";
value
value: string;