h4m1d.r3z4
28 Jan 2011, 6:56 AM
Hi everyone,
I'm creating a pretty simple app but unfortunately I cannot get it to work properly. The app is consisted of an Ext.Panel in which lays an Ext.Toolbat. Here's the code:
mainPanel = new Ext.Panel({
fullscreen: true,
layout: 'card',
dockedItems: [
new Ext.Toolbar({
dock: 'top',
title: 'test app',
items: [
new Ext.Button({
xtype: 'button',
ui : 'back',
text: 'Back',
handler: function() {}
}),
{xtype: 'spacer'},
new Ext.Button({
xtype: 'button',
ui : 'decline',
text: 'Sign out',
handler: function() {}
})
]
})
]
});
And here's the output
http://i55.tinypic.com/160bu5t.png
I have no idea why I don't see the buttons. What am I doing wrong? Any help is much appreciated, thanks.
EDIT: When I do a console.log it shows that toolbar has 0 items!
I'm creating a pretty simple app but unfortunately I cannot get it to work properly. The app is consisted of an Ext.Panel in which lays an Ext.Toolbat. Here's the code:
mainPanel = new Ext.Panel({
fullscreen: true,
layout: 'card',
dockedItems: [
new Ext.Toolbar({
dock: 'top',
title: 'test app',
items: [
new Ext.Button({
xtype: 'button',
ui : 'back',
text: 'Back',
handler: function() {}
}),
{xtype: 'spacer'},
new Ext.Button({
xtype: 'button',
ui : 'decline',
text: 'Sign out',
handler: function() {}
})
]
})
]
});
And here's the output
http://i55.tinypic.com/160bu5t.png
I have no idea why I don't see the buttons. What am I doing wrong? Any help is much appreciated, thanks.
EDIT: When I do a console.log it shows that toolbar has 0 items!