Config Class
A serializable JSON configuration that may be persisted in the local storage. A Config object is a collection of Setting objects.
Constructor
Methods
add
(
chainable
-
settings
Add settings to the configuration.
Parameters:
-
settings
Array
get
(
Object | String | Array
-
name
Retrieve sepecific setting from config.
Parameters:
-
name
StringThe name of the setting to retrieve
load
()
chainable
Load the config from the local storage.
merge
(
chainable
-
values
Take a JSON object and merge its properties into the config.
Parameters:
-
values
Object
set
(
chainable
-
name
-
value
Set a specific setting in this config.
store
()
chainable
Store the config in the local storage.