Back to Website
Show / Hide Table of Contents

Class UpdateContainerSettingsCommand

A command that updates channel containers with new parameters. A command that updates channel containers with new parameters. For details, see the IChannelContainerDefinition topic.

{
  "type": "canvas",
  "name": "editor",
  "params": {
    "initial": { ... },
    "updateContainerSettings": [
      {
        "Foil": {
          "texture": "{{ $['foil']._.props.texture }}"
        },
        "Raised Ink": {
          "texture": "{{ $['paper']._.props.textColor }}"
        }
      }
    ]
  }
}

For details, see the IChannelContainerDefinition topic.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "updateContainerSettings": [
      {
        "Foil": {
          "texture": "{{ $['foil']._.props.texture }}"
        },
        "Raised Ink": {
          "texture": "{{ $['paper']._.props.textColor }}"
        }
      }
    ]
  }
}
Package: ui-framework

Methods

execute(kvObject<string, CustomersCanvas.IframeApi.ObjectModel.IChannelContainerDefinition>[])

Executes this command.

Declaration
function execute(params: kvObject<string, CustomersCanvas.IframeApi.ObjectModel.IChannelContainerDefinition>[])
Parameters
Type Name Description
kvObject<string, CustomersCanvas.IframeApi.ObjectModel.IChannelContainerDefinition>[] 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