Write modified data to localStorage.
(Normally there is no need to call this method, since it is triggered internally after a short collation interval.)
Return a data property value (key
supports dot notation).
Return true if there are uncommited or unpushed modifications.
Return true if initial pull has completed.
See also the store.ready
promise, that is resolved accordingly.
Download data from the cloud, then call .update()
.
Commit, then upload data into the cloud.
(Normally there is no need to call this method, since it is triggered internally.)
Read data properties from form input elements with the same name.
Supports elements of input (type: text, radio, checkbox), textarea,
and select.
form* may be a form element or selector string. Example: "#myForm"
.
(defaults to PersistoOptions.attachForm)
options* is optional and defaults to {addNew: false, coerce: true, trim: true}
.
Delete object property and set the dirty
flag (key
supports dot notation).
Replace data object with a new instance and set the dirty
flag.
is optional and defaults to {}
Modify object property and set the dirty
flag (key
supports dot notation).
value* must be convertible to JSON.
Flag object as modified, so that commit / push will be scheduled.
Return readable string representation for this instance.
Load data from localStorage.
Write data to form elements with the same name.
form may be a form selector or HTMLElement object. Example: "#myForm"
(defaults to PersistoOptions.attachForm)
Generated using TypeDoc
A persistent plain object or array.
See also PersistoOptions.