au-widget-design-editor/Commands/change-mockup-command
Classes
ChangeMockupCommand
A command that changes mockup images in the editor.
For details, you can refer to the IDesignEditorDefinitionChangeMockup.
{
"widgets": [{
"type": "design-editor",
"name": "editor",
"params": {
"inital": { ... },
"changeMockup": {
"data": [{
"mockup": {
"down": "{{$['color']._.props.mockup}}"
},
"previewMockups": "{{$['color']._.props.previews}}"
}]
}
}
}]
}
Extends
Methods
execute()
execute(params): Promise<any>;
Executes this command.
Parameters
| Parameter | Type | Description |
|---|---|---|
params | IDesignEditorDefinitionChangeMockup | Parameters for the command. |
Returns
Promise<any>