Back to Website
Show / Hide Table of Contents

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>
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback