Interface: IDesignEditorCommandDefinition
Provides the after
property to support a queue of commands.
The following example illustrates how you can run the setViewerSettings
command after setPrintArea
completes.
{
"widgets": [{
"type": "design-editor",
"name": "editor",
"params": {
"inital": { ... },
"setViewerSettings": "{{vars.zoomSettings[$['flyer-size']._.title]}}",
"setPrintArea": {
"data": {
"designFile": "{{$['flyer-gallery']._.name}}"
},
"after": [
"setViewerSettings"
]
}
}
}]
}
Hierarchy
-
IDesignEditorCommandDefinition
↳ IDesignEditorDefinitionModifyItems
↳ IUpdateItemsCommandDefinition
↳ IUpdateSurfacesCommandDefinition
↳ IDesignEditorDefinitionSetTheme
↳ IDesignEditorDefinitionResizeItems
↳ IDesignEditorDefinitionTranslateItems
↳ IDesignEditorDefinitionSetViewerSettings
↳ IDesignEditorDefinitionInitial
↳ IDesignEditorDefinitionChangeLayout
↳ IDesignEditorDefinitionSetBackground
↳ IDesignEditorDefinitionSetPrintArea
Index
Properties
Properties
Optional
after
• after? : string | string[]
The next commands to be executed after this command completes.
Optional
showPreloader
• showPreloader? : boolean
If true
, displays the preloader while executing this command.