@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
49 lines (31 loc) • 1.09 kB
Markdown
A command that changes product design variants.
Here, we open the selected design variant.
```
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"changeDesignVariant": [{
"designVariant": "{{ $['pim-design-selector']._ }}"
}]
}
}
```
* [DesignEditorWidgetCommand](designeditorwidgetcommand.md)
↳ **ChangeDesignVariantCommand**
* [execute](changedesignvariantcommand.md
▸ **execute**(`params`: [IChangeDesignVariantCommandDefinition](../interfaces/ichangedesignvariantcommanddefinition.md)): *Promise‹void›*
*Overrides [DesignEditorWidgetCommand](designeditorwidgetcommand.md).[execute](designeditorwidgetcommand.md
Executes this command.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`params` | [IChangeDesignVariantCommandDefinition](../interfaces/ichangedesignvariantcommanddefinition.md) | Parameters for the command. |
**Returns:** *Promise‹void›*