Interface Editor.ISaveProductOptions
Parameters defining how the personalization data should be applied.
Package: @aurigma/design-editor-iframe
Remarks
Editor.saveProduct() takes these options.
Examples
// Saving a product to the "t-shirt.st" file.
editor.saveProduct("t-shirt");
Properties
applyDataToVariablesOnly
if false, applies personalization data to any field with the specified name; if true, the data applies only to fields marked as variable. The default value is false.
Declaration
applyDataToVariablesOnly?: boolean;
Property Value
| Type | Description |
|---|---|
| boolean | if |
storeDataInState
if true, saves personalization data to state files. In this case, a state file will represent the initial product design without applying this data. If false, then the resulting state file will contain a set of personalized product copies but will not include the personalization data. The default value is true.
Declaration
storeDataInState?: boolean;
Property Value
| Type | Description |
|---|---|
| boolean | if |