Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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