UserSettings
Extends:
storing/loading user settings/ sending to the user and in localstorage etc.
Static Member Summary
| Static Public Members | ||
| public static |
EVENT_CHANGE: * |
|
| public static |
EVENT_LOADED: * |
|
| public static |
|
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| Private Members | ||
| private |
_LOCALSTORAGE_KEY: string |
|
| private |
_lsSettings: * |
|
| private |
_serverDelay: * |
|
| private |
_settings: {} |
|
| private |
wasLoaded: * |
|
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:
| Name | Type | Attribute | Description |
| key | String | ||
| defaultValue | any |
|
Return:
| * |
public init() source
public load(settings: *) source
Params:
| Name | Type | Attribute | Description |
| settings | * |
public reset() source
public save() source
public set(key: String, value: any) source
Params:
| Name | Type | Attribute | Description |
| key | String | ||
| value | any |
public setLS(key: *, value: *) source
Params:
| Name | Type | Attribute | Description |
| key | * | ||
| value | * |