Liking cljdoc? Tell your friends :D

web.Storage

The Storage interface of the Web Storage API provides access a particular domain's session or local storage. It allows, for the addition, modification, or deletion of stored data items.

The Storage interface of the Web Storage API provides access
a particular domain's session or local storage. It allows, for
the addition, modification, or deletion of stored data items.
raw docstring

clearcljs

(clear this)

Method.

The clear() method of the web.Storage interface clears all stored in a given Storage object.

storage.clear();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Storage/clear

Method.

The clear() method of the `web.Storage` interface clears all
stored in a given Storage object.

`storage.clear();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Storage/clear`
sourceraw docstring

get-itemcljs

(get-item this key-name)

Method.

The getItem() method of the web.Storage interface, when passed key name, will return that key's value, or null if the key does exist, in the given Storage object.

var aValue = storage.getItem(keyName);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Storage/getItem

Method.

The getItem() method of the `web.Storage` interface, when passed
key name, will return that key's value, or null if the key does
exist, in the given Storage object.

`var aValue = storage.getItem(keyName);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Storage/getItem`
sourceraw docstring

keycljs

(key this index)

Method.

The key() method of the web.Storage interface, when passed number n, returns the name of the nth key in a given Storage The order of keys is user-agent defined, so you should not rely it.

var aKeyName = storage.key(index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Storage/key

Method.

The key() method of the `web.Storage` interface, when passed
number n, returns the name of the nth key in a given Storage
The order of keys is user-agent defined, so you should not rely
it.

`var aKeyName = storage.key(index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Storage/key`
sourceraw docstring

lengthcljs

(length this)

Property.

The length read-only property of the web.Storage interface the number of data items stored in a given Storage object.

var aLength = storage.length;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Storage/length

Property.

The length read-only property of the `web.Storage` interface
the number of data items stored in a given Storage object.

`var aLength = storage.length;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Storage/length`
sourceraw docstring

remove-itemcljs

(remove-item this key-name)

Method.

The removeItem() method of the web.Storage interface, when a key name, will remove that key from the given Storage object it exists. If there is no item associated with the given key, method will do nothing.

storage.removeItem(keyName);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Storage/removeItem

Method.

The removeItem() method of the `web.Storage` interface, when
a key name, will remove that key from the given Storage object
it exists. If there is no item associated with the given key,
method will do nothing.

`storage.removeItem(keyName);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Storage/removeItem`
sourceraw docstring

set-itemcljs

(set-item this key-name key-value)

Method.

The setItem() method of the web.Storage interface, when passed key name and value, will add that key to the given Storage object, update that key's value if it already exists.

storage.setItem(keyName, keyValue);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem

Method.

The setItem() method of the `web.Storage` interface, when passed
key name and value, will add that key to the given Storage object,
update that key's value if it already exists.

`storage.setItem(keyName, keyValue);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close