Interface ICanvasDefinitionSetTheme
Provides properties to define a product theme. For details, you can refer to the SetTheme command.
{
"type": "canvas",
"name": "editor",
"params": {
"initial": { ... },
"setTheme": {
"primary": "{{ "#f00" }}",
"secondary": "{{ "#0f0" }}"
}
}
}
Package: ui-framework
Properties
after
The next commands to be executed after this command completes.
Declaration
after?: string | string[]
Property Value
Type | Description |
---|---|
string | string[] | The next commands to be executed after this command completes. |
theme
Typically, it is a theme name as a string, but you can also pass a structure describing an "ad-hoc" theme.
Declaration
theme: string | CustomersCanvas.IframeApi.Configuration.IProductThemeConfig
Property Value
Type | Description |
---|---|
string | CustomersCanvas.IframeApi.Configuration.IProductThemeConfig | Typically, it is a theme name as a string, but you can also pass a structure describing an "ad-hoc" theme. |