UNPKG

alloy

Version:

TiDev Titanium MVC Framework

20 lines (19 loc) 432 B
$.sfb.setHandlers({ success: function(books) { var data = []; _.each(books, function(book) { var row = Alloy.createController('row', { title: book.title, authors: book.authors, image: book.image }).getView(); data.push(row); }); $.table.setData(data); } // You can override error handling with the 'error' property // error: function(e) { // alert('ERROR: ' + e.error); // } }); $.win.open();