This namespace contains the config options and functions.
- Source:
Methods
-
(static) AddConfig(Data, ConfigKey)
-
This function includes the given data into the config hash.
Parameters:
Name Type Description DataObject The config data to include as a javascript object ConfigKeyString The key in the config where the data structure is saved to. If undefined, the Data is added to the root of the hash. - Source:
-
(static) Get(Key, DefaultValueopt) → {Object}
-
Gets a single config value.
Parameters:
Name Type Attributes Description KeyString The name of the config option (also combined ones like Richtext.Width). DefaultValueObject <optional>
If nothing is saved in the config, return this default value. - Source:
Returns:
The value of the option. Can be every kind of javascript variable type. Returns undefined if setting could not be found.- Type
- Object
-
(static) Set(Key, Value)
-
Sets a single config value.
Parameters:
Name Type Description KeyString The name of the config option (also combined ones like Richtext.Width) ValueObject The value of the option. Can be every kind of javascript variable type. - Source: