Jump To:

  1. core/settings.getDefaultSettings() ⇒ object
  2. core/settings.updateSettings(changes)
  3. core/settings.getSettings() ⇒ object
  4. core/settings.getSetting(key) ⇒ *
  5. core/settings.updateSetting(key, value)
  6. core/settings.wrapSettingString(key, transform) ⇒ Object
  7. core/settings~defaults : Defaults
  8. core/settings~Defaults : object

core/settings

Internal implementation for managing shared configuration.

core/settings.getDefaultSettings() ⇒ object

Retrieves a copy of the default settings.

Kind: static method of core/settings
Returns: object - A copy of the default settings object.

core/settings.updateSettings(changes)

Updates multiple configuration settings.

Kind: static method of core/settings

Param Type Description
changes object An object containing the settings to update.

core/settings.getSettings() ⇒ object

Retrieves a copy of the current configuration settings.

Kind: static method of core/settings
Returns: object - A copy of the current settings object.

core/settings.getSetting(key) ⇒ *

Retrieves a specific configuration setting by key.

Kind: static method of core/settings
Returns: * - The value of the setting, or undefined if not found.

Param Type Description
key string The key of the setting to retrieve.

core/settings.updateSetting(key, value)

Updates a specific configuration setting.

Kind: static method of core/settings

Param Type Description
key string The key of the setting to update.
value * The new value for the setting.

core/settings.wrapSettingString(key, transform) ⇒ Object

Creates a wrapped string representation of a configuration setting. This function returns an object with a toString() method that, when called, retrieves the current value of the specified setting. This allows the setting to be used as a string literal, dynamically retrieving its value.

Kind: static method of core/settings
Returns: Object - An object with a toString() method that returns the (optionally transformed) setting value as a string.

Param Type Description
key String The key of the setting to wrap.
transform function Optional function to transform the setting's value when its string representation is requested.

core/settings~defaults : Defaults

Kind: inner constant of core/settings

core/settings~Defaults : object

Default settings

Kind: inner typedef of core/settings
Properties

Name Type Description
iconClassClose string The CSS class string for the close icon
iconClassDragX string The CSS class string for the drag X icon
iconClassDragBoth string The CSS class string for the dragging in both directions
iconClassPrevious string The CSS class string for the previous icon
iconClassNext string The CSS class string for the next icon
cssvarPrefix string The prefix to use for CSS custom properties