Documentation
Reference
2.1.55 (current version)
collection
interactivityModel
Interfaces

util.Storage

Object storage by keys.

Constructor | Methods

Constructor

util.Storage()

Methods

NameReturnsDescription
add(key, object)

util.Storage

Adds an object to storage.

get(key)

Object

Returns object stored for the specified key, or the primary key, if this is not a string.

remove(key)

util.Storage

Deletes the "key: value" pair from storage.

Methods details

add

Adds an object to storage.

Returns self-reference.

Parameters:

ParameterDefault valueDescription
key*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: String

Key.

object*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Object

Stored object.

* Mandatory parameter/option.

get

{Object} get(key)

Returns object stored for the specified key, or the primary key, if this is not a string.

Parameters:

ParameterDefault valueDescription
key*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: String|Object

Key.

* Mandatory parameter/option.

remove

{util.Storage} remove(key)

Deletes the "key: value" pair from storage.

Returns self-reference.

Parameters:

ParameterDefault valueDescription
key*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: String

Key.

* Mandatory parameter/option.