Methods
load()
Load the style options from localStorage.
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>> |
reset()
Reset the style variables to their initial values.
save()
Save the changes to the style options.
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> |