Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 06_add_transitions into master.

  • Loading branch information...
commit 9f6221e687a4ad1bf6c90ceef8c55bd74af6429f 1 parent d5ace56
@nelstrom authored
Showing with 14 additions and 11 deletions.
  1. +14 −11 public/javascripts/index.js
View
25 public/javascripts/index.js
@@ -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}!',
@@ -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]
});
+
}
});
+
Please sign in to comment.
Something went wrong with that request. Please try again.