@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
70 lines (50 loc) • 1.5 kB
Markdown
A command that changes mockups by direct URLs.
A command that changes mockups by direct URLs.
For details, you can refer to the [ISetRemoteMockupParams](../README.md
```
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"setRemoteMockup": [{
"surfaceIndex": 0,
"mockup": "down",
"url": "http://example.com/mockup.png"
}]
}
}
```
For details, you can refer to the [ISetRemoteMockupParams](../README.md
```
{
"type": "canvas",
"name": "editor",
"params": {
"initial": { ... },
"setRemoteMockup": [{
"surfaceIndex": 0,
"mockup": "down",
"url": "http://example.com/mockup.png"
}]
}
}
```
* [DesignEditorWidgetCommand](designeditorwidgetcommand.md)
* [CanvasWidgetCommand](canvaswidgetcommand.md)
↳ **SetRemoteMockupCommand**
* [execute](setremotemockupcommand.md
▸ **execute**(`params`: [ISetRemoteMockupParams](../README.md
*Overrides [DesignEditorWidgetCommand](designeditorwidgetcommand.md).[execute](designeditorwidgetcommand.md
Executes this command.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`params` | [ISetRemoteMockupParams](../README.md
**Returns:** *Promise‹void›*