@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
29 lines (23 loc) • 719 B
Markdown
Command: setSurfaces
=====================
Replaces a product in the editor by using surface definitions. This command is an equivalent of the [setSurfaces](https://customerscanvas.com/docs/cc/customerscanvas.iframeapi.objectmodel.surface.setsurfaces.htm) method from the IFrame API.
- `surfaces` - an array of the new surfaces.
``` json
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"setSurfaces": {
"surfaces": [{
"{{ #if $['editor'].stateId !== '' }}": {
"stateId": "{{ $['editor'].stateId }}",
"surface": 0
}
}]
}
}
}
```