PDA

View Full Version : GroupTabs in ExtJs 2 ?



radutopala
17 Aug 2009, 2:23 AM
Hi,

Is there any way to use GroupTabs with Extjs 2 instead of 3?
I have tried to use the sources of TabPanel from Extjs2, but if gives an error around "getTemplateArgs" method.

Thanks.

radutopala
17 Aug 2009, 2:47 AM
I've added this to ext-all.js:


Ext.TabPanel=Ext.extend(Ext.Panel,{getTemplateArgs : function(item) {
var cls = item.closable ? 'x-tab-strip-closable' : '';
if(item.disabled){
cls += ' x-item-disabled';
}
if(item.iconCls){
cls += ' x-tab-with-icon';
}
if(item.tabCls){
cls += ' ' + item.tabCls;
}

return {
id: this.id + this.idDelimiter + item.getItemId(),
text: item.title,
cls: cls,
iconCls: item.iconCls || ''
};
},...

but now another error:

this.getActionEl() is undefined
file:///Y:/manager/plugins/sfExtjs2Plugin/web/extjs/ext-all.js
Line 58