Skip to content

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 ​

ParameterTypeDescription
featureNamestringthe feature to change
valueFeatureValuethe value for that feature

Returns ​

void


switchTheme() ​

ts
switchTheme(name): Promise<void>;

Defined in: theemo.ts:82

Swithes to another theme

Parameters ​

ParameterTypeDescription
namestringthe 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 ​

ParameterTypeDescription
featureNamestringthe feature to unset

Returns ​

void