TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Interface: ICanvasDefinitionChangeMockup

Provides properties to change mockups.

For details, you can refer to the ChangeMockup command.

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

Hierarchy

Index

Properties

Properties

Optional after

after? : string | string[]

Inherited from ICanvasCommandDefinition.after

The next commands to be executed after this command completes.


data

data: CustomersCanvas.IframeApi.ObjectModel.IMockupData[]

Mockup settings.


options

options: object

Type declaration:

  • addToHistory: boolean

  • updateRevertData: boolean