Permalink
Browse files

Make detailpanel render details of current record.

  • Loading branch information...
nelstrom committed Dec 24, 2010
1 parent 4244d0c commit 51a0609fe43a9000e81323de36117aca26f777b9
Showing with 3 additions and 2 deletions.
  1. +2 −1 public/javascripts/index.js
  2. +1 −1 todo.otl
@@ -19,6 +19,7 @@ ListDemo = new Ext.Application({
ListDemo.disclosureList = new Ext.List({
id: 'disclosurelist',
onItemDisclosure: function(record, btn, index) {
+ ListDemo.detailPanel.update(record.data);
ListDemo.Viewport.setActiveItem('detailpanel');
},
store: ListDemo.ListStore,
@@ -27,7 +28,7 @@ ListDemo = new Ext.Application({
ListDemo.detailPanel = new Ext.Panel({
id: 'detailpanel',
- html: 'Hello, world!',
+ tpl: 'Hello, {firstName}!',
dockedItems: [
{
xtype: 'toolbar',
View
@@ -1,5 +1,5 @@
[X] switch from `Ext.setup()` to `new Ext.Application()`
[_] reveal a detail panel onItemDisclosure
- [_] add a toolbar to detailpanel, with back button
+ [X] add a toolbar to detailpanel, with back button
[_] add a template for detailpanel, and pass it the current item
[_] use a slide transition when switching active card

0 comments on commit 51a0609

Please sign in to comment.