PDA

View Full Version : [FIXED] TabConfig not shown for custom panels inside Tab Panel



ochrons
26 Apr 2012, 11:13 PM
If I use a custom panel inside a Tab Panel, it's not given the TabConfig option. This reduces the configurability of the tab considerably. One workaround is to wrap the custom panel in a standard panel, which will get the TabConfig.

Source:


initComponent: function() {
var me = this;


Ext.applyIf(me, {
items: [
{
xtype: 'tabpanel',
activeTab: 0,
items: [
{
xtype: 'mainpanel',
title: 'Orders'
},
{
xtype: 'panel',
title: 'My Panel'
}
]
}
]
});


me.callParent(arguments);
}




And how it's shown in the Project Inspector:
34588
The normal "My Panel" gets the TabConfig, but my custom Orders panel doesn't.

--
Otto Chrons, CTO, Microtask Ltd.