Skip to main content

au-widget-design-editor/Commands/initial-command

Classes​

InitialCommand​

A command that defines a product and configures the editor.

For details, you can refer to the IDesignEditorDefinitionInitial.

{
"widgets": `[{
"type": "design-editor",
"name": "editor",
"params": {
"initial":{
"productDefinition":{
"surfaces":[{ "printAreas": [{ "designFile": "mytemplate" }]` }]
},
"editorConfig": {
"initialMode": "Advanced"
}
}
}
}]
}

Extends​

Methods​

execute()​
execute(params): Promise<any>;

Executes this command.

Parameters​
ParameterTypeDescription
paramsIDesignEditorDefinitionInitialParameters for the command.
Returns​

Promise<any>

Overrides​

DesignEditorWidgetCommand.execute

Was this page helpful?