List is not showing inside of a TabPanel
Hi,
I'm trying to show a list inside of a tab in TabPanel. When I just show the list - it works fine, but when I put it inside of a TabPanel it is not shown.
It is shown when I use this code in the launch event:
Code:
Ext.create('Ext.List', {
fullscreen: true,
itemTpl: '<div class="contact">{ID} <strong>{Name}</strong></div>',
store: cityStore
});
And when I use this code, it won't show (though the tabs are shown as need). I've also tried including the Ext.create list inside the items, still same result.
Code:
Ext.create('Ext.TabPanel',{
fullscreen: true,
tabBarPosition: 'bottom',
scrollable: true,
items: [
{
title: 'Home',
iconCls: 'home',
html: ['Welcome to my Pizza!'].join(""),
style: 'text-align: center;'
},
{
title: 'Search',
iconCls: 'search',
items: [list] // this is Ext.create('Ext.List', { ... as shown before
},
{
xtype: 'toolbar',
title: 'Pizza',
dock: 'top'
}
]
}).setActiveItem(1); // this is set for debugging only
What could be wrong? Thanks!