Augmented.js Presentation LocalForage Models
Extends AbstractCollection
LocalForageCollection
models
options
(optional, default{}
)
Base key name for the collection (simular to url for rest-based)
key
string The key
Initialize the model with needed wireing
options
object Any options to pass
Custom init method for the model (called at inititlize)
options
object Any options to pass
Fetch the collection
options
object Any options to pass
Save the collection
options
object Any options to pass
Update the collection
options
object Any options to pass
Destroy the collection
options
object Any options to pass
Sync method for Collection
method
model
options
Extends AbstractModel
Model
attributes
options
(optional, default{}
)args
...any
sync - Sync model data to bound localforage
method
Fetch the model
options
object Any options to pass
Save the model
options
object Any options to pass
Update the model
options
object Any options to pass
Destroy the model
options
object Any options to pass
- **See: LocalForage Config **
LocalForage API
config
Object Config the base storage library
Is storage supported
Returns boolean Returns true if supported
Gets an item from storage
itemKey
key
string The key in storage
Returns object Returns object from storage
Sets an item to storage
Removes an item from storage
itemKey
key
string The key in storage
Clears storage
Gets the key from storage for index
i
number The index in storage
Returns string Returns the key from storage
Gets the keya from storage
Returns array Returns the keys from storage
The length of storage by keys
Returns number Returns the length of storage by keys