Theemo / @theemo/ember / TheemoService
Class: TheemoService
Defined in: theemo.ts:12
Manage Themes in Ember
Extends
default
Accessors
activeTheme
Get Signature
ts
get activeTheme(): Theme | undefined;Defined in: theemo.ts:49
The active theme
Returns
Theme | undefined
features
Get Signature
ts
get features(): FeatureWithValue[];Defined in: theemo.ts:54
All features for the active theme
Returns
FeatureWithValue[]
themes
Get Signature
ts
get themes(): Theme[];Defined in: theemo.ts:42
List of all available themes
Returns
Theme[]
Methods
setFeature()
ts
setFeature(featureName, value): void;Defined in: theemo.ts:64
Set a feature to the given value
Parameters
| Parameter | Type | Description |
|---|---|---|
featureName | string | the feature to change |
value | FeatureValue | the value for that feature |
Returns
void
switchTheme()
ts
switchTheme(name): Promise<void>;Defined in: theemo.ts:82
Swithes to another theme
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | the name of the new theme |
Returns
Promise<void>
unsetFeature()
ts
unsetFeature(featureName): void;Defined in: theemo.ts:73
Unsets a feature. Reverts to its default.
Parameters
| Parameter | Type | Description |
|---|---|---|
featureName | string | the feature to unset |
Returns
void