The save button your save button could be like.
npm install orgsync-savvyThe save button your save button could be like.
Savvy's two dependencies are jQuery and Underscore, so include them before
Savvy.
``html`
...or use bower...
``
bower install savvy
...and get the JavaScript file from components/savvy/savvy.js.
- el - a jQuery object, DOM node, jQuery selector or raw HTML.
- dfd - a Deferred object, like one returned by $.ajax.''
- options - An optional object with any or all of the following...
- pendingContent - The content the element should display while thepending
deferred object is in a state.''
- doneContent - The content the element should display while thedone
deferred object is in a state.''
- failContent - The content the element should display while thefail
deferred object is in a state.-1
- duration - The time (ms) to wait before returning the element'sdone
original content after a or fail. -1 keeps the element in the
done or fail state until reset() is called.
Set the $el property. This allows the creation of "empty" savvy instances to
be populated later.
Update the deferred object for a savvy instance.
Return the element to its original state. This will only need to be called
manually when duration is -1`.