Back to Website
Show / Hide Table of Contents

Class SetThemeCommand

A command that defines product themes. A command that defines product themes. For details, you can refer to ICanvasDefinitionSetTheme.

{
  "type": "canvas",
  "name": "editor",
  "params": {
    "initial": { ... },
    "setTheme": {
      "primary": "{{ "#f00" }}",
      "secondary": "{{ "#0f0" }}"
    }
  }
}

For details, you can refer to IDesignEditorDefinitionSetTheme.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "setTheme": {
      "primary": "{{ "#f00" }}",
      "secondary": "{{ "#0f0" }}"
    }
  }
}
Package: ui-framework

Methods

execute(ICanvasDefinitionSetTheme)

Executes this command.

Declaration
function execute(param: ICanvasDefinitionSetTheme)
Parameters
Type Name Description
ICanvasDefinitionSetTheme param
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