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

Class: SetRemoteMockupCommand

A command that changes mockups by direct URLs. A command that changes mockups by direct URLs.

For details, you can refer to the ISetRemoteMockupParams.

{
  "type": "canvas",
  "name": "editor",
  "params": {
    "initial": { ... },
    "setRemoteMockup": [{
      "surfaceIndex": 0,
      "mockup": "down",
      "url": "http://example.com/mockup.png"
    }]
  }
}

For details, you can refer to the ISetRemoteMockupParams.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "setRemoteMockup": [{
      "surfaceIndex": 0,
      "mockup": "down",
      "url": "http://example.com/mockup.png"
    }]
  }
}

Hierarchy

Index

Methods

Methods

execute

execute(params: ISetRemoteMockupParams): Promise‹any›

Overrides CanvasWidgetCommand.execute

Executes this command.

Parameters:

Name Type Description
params ISetRemoteMockupParams Parameters for the command.

Returns:Promise‹any›