Jump to navigation

Class: StyleCustomiser

StyleCustomiser

A . controller for user style customisations.

Constructor

new StyleCustomiser()

Source:

Methods

load()

Load the style options from localStorage.

Source:

make_style_object() → {Object.<observable.<string>>}

Make an object with an observable for each name in this.style_variables.

Returns:
Type Description
Object.<observable.<string>>
Source:

reset()

Reset the style variables to their initial values.

Source:

save()

Save the changes to the style options.

Source:

styleObservable(property_name) → {observable.<string>}

Make a Knockout observable whose initial value is taken from the CSS custom property with the given name.

Parameters:
Name Type Description
property_name string
Returns:
Type Description
observable.<string>
Source: