Skip to main content

ProductThemeManager

Classes

ProductThemeConfig

Implements

Indexable

[name: string]: any

Constructors

Constructor
new ProductThemeConfig(rawObject): ProductThemeConfig;
Parameters
ParameterType
rawObjectObject
Returns

ProductThemeConfig


ProductThemeManager

Constructors

Constructor
new ProductThemeManager(
productHandler,
productThemes,
canvas,
eventManager): ProductThemeManager;
Parameters
ParameterType
productHandlerProductHandler
productThemes{ [name: string]: IProductThemeConfig; }
canvasCanvas
eventManagerEventManager
Returns

ProductThemeManager

Properties

currentProductTheme
currentProductTheme: IProductThemeConfig;
productThemes
productThemes: object;
Index Signature
[name: string]: IProductThemeConfig

Methods

applyProductTheme()
applyProductTheme(
theme,
product,
commandManager): boolean;
Parameters
ParameterType
themeany
productProduct
commandManagerCommandManager
Returns

boolean

applyToItem()
applyToItem(
item,
theme?,
themeBinding?): Promise<boolean>;
Parameters
ParameterType
itemItem
theme?IProductThemeConfig
themeBinding?ThemeBinding
Returns

Promise<boolean>

Was this page helpful?