Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Instantiate toolbar, rather than using config object.

  • Loading branch information...
commit 9a1910efa9ec9dbb6619a4a2386211e1bbc65f80 1 parent 6c70b26
@nelstrom authored
Showing with 11 additions and 10 deletions.
  1. +11 −10 public/javascripts/index.js
View
21 public/javascripts/index.js
@@ -3,19 +3,20 @@ ListDemo = new Ext.Application({
launch: function() {
+ ListDemo.detailToolbar = new Ext.Toolbar({
+ items: [{
+ text: 'back',
+ ui: 'back',
+ handler: function() {
+ ListDemo.Viewport.setActiveItem('indexlist');
+ }
+ }]
+ });
+
ListDemo.detailPanel = new Ext.Panel({
id: 'detailpanel',
tpl: 'Hello, {firstName}!',
- dockedItems: [{
- xtype: 'toolbar',
- items: [{
- text: 'back',
- ui: 'back',
- handler: function() {
- ListDemo.Viewport.setActiveItem('indexlist');
- }
- }]
- }]
+ dockedItems: [ListDemo.detailToolbar]
});
ListDemo.listPanel = new Ext.List({
Please sign in to comment.
Something went wrong with that request. Please try again.