UI Framework ReferenceSetThemeCommand

Class: SetThemeCommand

A command that defines product themes. A command that defines product themes.

For details, you can refer to the ICanvasDefinitionSetTheme.

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

For details, you can refer to the IDesignEditorDefinitionSetTheme.

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

Hierarchy

Index

Methods

Methods

execute

execute(param: ICanvasDefinitionSetTheme): Promise‹any›

Overrides CanvasWidgetCommand.execute

Defined in src/widgets/au-widget-canvas/Commands/set-theme-command.ts:27

Executes this command.

Parameters:

Name Type
param ICanvasDefinitionSetTheme

Returns:Promise‹any›