setActiveTheme()
Home > @gooddata/sdk-backend-spi > IWorkspaceStylingService > setActiveTheme
IWorkspaceStylingService.setActiveTheme() method
Set active theme setting in workspace.
Signature:
setActiveTheme(themeRef: ObjRef): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
themeRef |
active theme reference |
Returns:
Promise<void>
promise
Remarks
The scope is carried by the reference itself: an idRef typed "workspaceTheme" activates a workspace-scoped theme, otherwise the theme is treated as organization-scoped. There is no cross-scope fallback when the active setting is later resolved.