fde3dafa3c760c4dac26bca961bad86794dee55d
[plstackapi.git] / planetstack / core / xoslib / static / js / gentle2.js
1 DeveloperApp = new Marionette.Application();
2
3 DeveloperApp.addRegions({
4   mainRegion: "#developerView"\r
5 });
6
7 DeveloperApp.SlioeDetailView = Marionette.ItemView.extend({
8   template: "#developer-slicedetail-template",\r
9   tagName: 'tr',\r
10   className: 'developer_slicedetail'\r
11 });
12
13 DeveloperApp.ContactsView = Marionette.CollectionView.extend({
14     tagName: "table",
15     childView: DeveloperApp.ContactItemView
16 });
17
18 DeveloperApp.on("start", function(){
19     xos.slices.add(        {
20             firstName: "Bob",
21             lastName: "Brigham",
22             phoneNumber: "555-0163"
23         });
24
25     var contactsView = new DeveloperApp.ContactsView({
26         collection: xos.slices
27     });
28
29     DeveloperApp.mainRegion.show(contactsView);
30 });
31
32 $(document).ready(function(){
33    DeveloperApp.start();
34 });