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

Interface: ICanvasCommandDefinition

Provides the after property to support a queue of commands.

The following example illustrates how you can run the setViewerSettings command after setPrintArea completes.

{
  "widgets": [{
    "type": "canvas",
    "name": "editor",
    "params": {
      "inital": { ... },
      "setViewerSettings": "{{vars.zoomSettings[$['flyer-size']._.title]}}",
      "setPrintArea": {
        "data": {
          "designFile": "{{$['flyer-gallery']._.name}}"
        },
        "after": [
          "setViewerSettings"
        ]
      }
    }
  }]
}

Hierarchy

Index

Properties

Properties

Optional after

after? : string | string[]

The next commands to be executed after this command completes.