ProductThemeApplier
Classes
ProductThemeApplier
Constructors
Constructor
new ProductThemeApplier(colorPreviewService, colorParser): ProductThemeApplier;
Parameters
| Parameter | Type |
|---|---|
colorPreviewService | IColorPreviewService |
colorParser | IColorParser |
Returns
Methods
apply()
apply(
product,
theme?,
themeBinding?): Promise<boolean>;
Parameters
| Parameter | Type |
|---|---|
product | Product |
theme? | IProductThemeConfig |
themeBinding? | ThemeBinding |
Returns
Promise<boolean>
applyToItem()
applyToItem<T>(
item,
theme?,
themeBinding?): Promise<boolean>;
Type Parameters
| Type Parameter |
|---|
T extends Item |
Parameters
| Parameter | Type |
|---|---|
item | T |
theme? | IProductThemeConfig |
themeBinding? | ThemeBinding |
Returns
Promise<boolean>