CauldronSettings

CauldronSettings

Allow setting settings in localStorage

Constructor

new CauldronSettings()

Source:

Methods

(static) getSetting(key, defaultValue)

Source:
Parameters:
Name Type Description
key string
defaultValue any

(static) getSettings() → {Object}

Source:
Returns:
Type
Object

(static) getWordwrap() → {boolean}

Source:
Returns:
true/false depending on if word wrap should be enabled or not
Type
boolean

(static) setSetting(key, setting)

Source:
Parameters:
Name Type Description
key string
setting any

(static) setSettings(settings)

Source:
Parameters:
Name Type Description
settings Object

(static) setWordwrap(state)

Description:
  • Sets word-wrap state
Source:
Parameters:
Name Type Description
state boolean true/false state of word-wrap