Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gigi81/knockoutjs-undo
Undo support for knockoutjs as an extender
https://github.com/gigi81/knockoutjs-undo
Last synced: about 1 month ago
JSON representation
Undo support for knockoutjs as an extender
- Host: GitHub
- URL: https://github.com/gigi81/knockoutjs-undo
- Owner: gigi81
- Created: 2013-03-28T11:16:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-14T10:06:54.000Z (over 11 years ago)
- Last Synced: 2023-03-15T11:01:19.157Z (almost 2 years ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
knockoutjs-undo
===============Undo support for knockoutjs as an extender.
Usage Example
===============this.firstName = ko.observable(first).extend({undo:{}});
Or with an undo context:
this.firstName = ko.observable(first).extend({undo:{context: this}});
The purpose of the context is to have more than one undo stack on the same page. See demo.
Working demo
==============
http://gigi81.github.com/knockoutjs-undo/demo.html