Data Editor

Data List

this.zap.on({ // events used by this specific application's life-cycle: // a specific item was loaded by you: load: function(item){ editor.value=item.data; // populate the form with the loaded item's data }, // an item was saved by you: save: function(o){ editor.reset(); // clear out form }, // an item was updated or created by anyone: item: function(o){ zap.list(); // update list }, // updated list data has arrived from anyone: list: function(arr){ listView.innerHTML=""; // clear out old list arr.map(tmpl.append); // rebuild new list from incoming data } }); // end application events
Back to Demos   Veneer Home