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> |