new Settings()

Settings class used by Datatable's components to get various values, such as class names, labels, icons, etc etc.

Description
Settings class used by Datatable's components to get various values, such as class names, labels, icons, etc etc. Create a new instance of this class & customize it to use different CSS frameworks. The default Settings is for *Bootstrap 3/4* with *glyphicon*. To edit settings contained by an instance of this class, either edit the Settings#properties object, or use the Settings#merge method.
Details

Members


properties :SettingsProps

Description
Tree of settings values.

Methods


get( path ) → {*}

Description
Get a value at a specific path.
Parameters
Name Type Description
path string | number | Array.<(string|number)> Path to the value to get.
Returns
The value at the specified path
Details

set( path, value ) → {this}

Description
Defines a value at a specific path
Parameters
Name Type Description
path string | number | Array.<(string|number)> Path to the value to set.
value * New value to set.
Returns
For chaining.
Details

merge( settings ) → {this}

Description
Merges a new settings object within the Settings instance.
Parameters
Name Type Description
settings SettingsProps New settings object to merge with the current object of the Settings instance.
Returns
For chaining.
Details