BrowserDataSource class
Storage in the browser, uses local storage
BrowserDataSource Type
Signature:
export declare class BrowserDataSource<Type> implements IDataSource<Type>
Implements: IDataSource<Type>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(_localStorageKey) | Creates an instance of BrowserDataSource. |
Methods
Method | Modifiers | Description |
---|---|---|
delete(key, keyName) | deletes item from the local storage | |
get(key, keyName) | gets value from the local storage by given key | |
load() | loads all from the local storage | |
save(key, value, keyName) | saves value to the local storage |