Interface JQueryTotalStorage

desc

Set the value of a key to a string

example

$.totalStorage('the_key', 'the_value');

desc

Set the value of a key to a number

example

$.totalStorage('the_key', 800.2);

desc

Set the value of a key to a complex Array

example

var myArray = new Array(); myArray.push({name:'Jared', company:'Upstatement', zip:63124}); myArray.push({name:'McGruff', company:'Police', zip:60652}; $.totalStorage('people', myArray); //to return: $.totalStorage('people');

Index

Call signatures

Methods

Call signatures

(key: string, value?: any, options?: JQueryTotalStorageOptions): any

desc

Set or get a key's value

Parameters

  • key: string

    Key to set.

  • value?: any optional

    Value to set for key. If ommited, current value for key is returned.

  • options?: JQueryTotalStorageOptions optional

    Not implemented.

Returns

any

Methods

public deleteItem(key: string): boolean

desc

Delete item by key

Parameters

  • key: string

    Key of item to delete

Returns

boolean

public getAll(): Array<any>

desc

Get all set values

Returns

Array<any>

public getItem(key: string): any

desc

Get a key's value

Parameters

  • key: string

    Key to get.

Returns

any

public setItem(key: string, value: any): any

desc

Set a key's value

Parameters

  • key: string

    Key to set.

  • value: any

    Value to set for key.

Returns

any