Back to Website
Show / Hide Table of Contents

Class ChangeMockupCommand

A command that changes mockup images in the editor. A command that changes mockup images in the editor. For details, you can refer to the ICanvasDefinitionChangeMockup.

{
  "widgets": [{
    "type": "canvas",
    "name": "editor",
    "params": {
      "inital": { ... },
      "changeMockup": {
        "data": [{
          "mockup": {
            "down": "{{$['color']._.props.mockup}}"
          },
          "previewMockups": "{{$['color']._.props.previews}}"
        }]
      }
    }
  }]
}

For details, you can refer to the IDesignEditorDefinitionChangeMockup.

{
  "widgets": [{
    "type": "design-editor",
    "name": "editor",
    "params": {
      "inital": { ... },
      "changeMockup": {
        "data": [{
          "mockup": {
            "down": "{{$['color']._.props.mockup}}"
          },
          "previewMockups": "{{$['color']._.props.previews}}"
        }]
      }
    }
  }]
}
Package: ui-framework

Methods

execute(ICanvasDefinitionChangeMockup)

Executes this command.

Declaration
function execute(params: ICanvasDefinitionChangeMockup)
Parameters
Type Name Description
ICanvasDefinitionChangeMockup params

Parameters for the command.

Returns
Type Description
Promise<any>
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