Skip to main content

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​
ParameterTypeDescription
paramsIDesignEditorDefinitionChangeMockupParameters for the command.
Returns​

Promise<any>

Overrides​

DesignEditorWidgetCommand.execute

Was this page helpful?