Skip to content

Commit

Permalink
Merge branch 06_add_transitions into master.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Jan 18, 2011
1 parent d5ace56 commit 9f6221e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions public/javascripts/index.js
Expand Up @@ -3,16 +3,6 @@ ListDemo = new Ext.Application({

launch: function() {

ListDemo.disclosureList = new Ext.List({
id: 'disclosurelist',
onItemDisclosure: function(record, btn, index) {
ListDemo.detailPanel.update(record.data);
ListDemo.Viewport.setActiveItem('detailpanel', {type:'slide',direction:'left'});
},
store: ListDemo.ListStore,
itemTpl: '<div class="contact">{firstName} {lastName}</div>'
});

ListDemo.detailPanel = new Ext.Panel({
id: 'detailpanel',
tpl: 'Hello, {firstName}!',
Expand All @@ -30,12 +20,25 @@ ListDemo = new Ext.Application({
]
});

ListDemo.listPanel = new Ext.List({
id: 'disclosurelist',
store: ListDemo.ListStore,
itemTpl: '<div class="contact">{firstName} {lastName}</div>',
grouped: true,
onItemDisclosure: function(record, btn, index) {
ListDemo.detailPanel.update(record.data);
ListDemo.Viewport.setActiveItem('detailpanel');
}
});

ListDemo.Viewport = new Ext.Panel ({
fullscreen: true,
layout: 'card',
cardSwitchAnimation: 'slide',
items: [ListDemo.disclosureList, ListDemo.detailPanel]
items: [ListDemo.listPanel, ListDemo.detailPanel]
});

}
});


0 comments on commit 9f6221e

Please sign in to comment.