- Source:
lazyload data-ui components
Methods
(static) get(key) → {Object}
- Source:
get an item from the cache
Example
get('terry')
Parameters:
Name | Type | Description |
---|---|---|
key |
String | the name of item to get |
Returns:
- Type
- Object
(static) getStore() → {Object}
- Source:
get the entire cache
Returns:
- Type
- Object
(static) mount(context) → {Promise}
- Source:
loader data-ui component
Parameters:
Name | Type | Description |
---|---|---|
context |
HTMLElement | the element to querySelectorAll from |
Returns:
- Type
- Promise
(static) remove(key) → {voide}
- Source:
delete an item from the cache
Parameters:
Name | Type | Description |
---|---|---|
key |
string | remove an item from the cache |
Returns:
- Type
- voide
(static) set(set, value) → {void}
- Source:
set an item into the cache
Example
set('terry', value)
Parameters:
Name | Type | Description |
---|---|---|
set |
String | the name of the key |
value |
Any | the vaue to store |
Returns:
- Type
- void
(static) unmount() → {voide}
- Source:
destroy ui components
Returns:
- Type
- voide