Home Reference Source
import UserSettings from './ui/components/usersettings.js'
public class | source

UserSettings

Extends:

Events → UserSettings

storing/loading user settings/ sending to the user and in localstorage etc.

Static Member Summary

Static Public Members
public static
public static
public static

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

: boolean

Private Members
private
private
private
private

_settings: {}

private

Method Summary

Public Methods
public

get(key: String, defaultValue: any): *

public

getAll(): *

public

getLS(key: *): *

public

init()

public

load(settings: *)

public

reset()

public

save()

public

set(key: String, value: any)

public

setLS(key: *, value: *)

Static Public Members

public static EVENT_CHANGE: * source

public static EVENT_LOADED: * source

public static SETTING_GLUI_DEBUG_COLORS: * source

Public Constructors

public constructor() source

Public Members

public : boolean source

Private Members

private _LOCALSTORAGE_KEY: string source

private _lsSettings: * source

private _serverDelay: * source

private _settings: {} source

private wasLoaded: * source

Public Methods

public get(key: String, defaultValue: any): * source

Params:

NameTypeAttributeDescription
key String
defaultValue any
  • default: null

Return:

*

public getAll(): * source

Return:

*

public getLS(key: *): * source

Params:

NameTypeAttributeDescription
key *

Return:

*

public init() source

public load(settings: *) source

Params:

NameTypeAttributeDescription
settings *

public reset() source

public save() source

public set(key: String, value: any) source

Params:

NameTypeAttributeDescription
key String
value any

public setLS(key: *, value: *) source

Params:

NameTypeAttributeDescription
key *
value *