Class ChangeDesignVariantCommand
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']._ }}"
}]
}
}
Package: ui-framework
Methods
execute(IChangeDesignVariantCommandDefinition)
Executes this command.
Declaration
function execute(params: IChangeDesignVariantCommandDefinition)
Parameters
Type | Name | Description |
---|---|---|
IChangeDesignVariantCommandDefinition | params |
Parameters for the command. |
Returns
Type | Description |
---|---|
Promise<void> |