PDA

View Full Version : Tabpanel in detailCard of List



myput
11 Oct 2011, 7:52 AM
Hello,

I would like to do a TabPanel in my DetailView of list.
When i click on the item, i would like a toolbar who offer some tabs in a bar, with different views.
I don't know how to do for create my toolbar:

I have:


WPApp.views.DirectoryItemListDetailContainer = new Ext.TabPanel ({
id: 'WPApp.views.DirectoryItemListDetailContainer',
fullscreen: true,
layout: "card",
id: "DirectoryDetailTabPanel",
dockedItems: [
{
xtype: 'toolbar',
items: [ {
ui: 'back',
text: 'Retour',
handler: function() {
WPApp.views.DirectoryItemListContainer.setActiveItem(WPApp.views.DirectoryItemListList);
}
]
},
{ xtype: 'spacer' },
{
xtype: 'tabBar',
dock: 'top',
layout: {
pack: 'center'
}
}
],
items: [
{title: 'Informations'},
{title: 'Description'},
{title: 'Map'},
],
});


But it's not working ... I don't know how to do.

Need help please :)