Dec 07, 2012, 7:55 AM
[CLOSED] Add dynamic component in tabpanel in fixed position
Hi guys,
i have a tabPanel with component add dynamic with js function.
When i add component, this one is add at the end.
It's possible to add component in second position for example ?
addTabPanel (js)
Yoann
i have a tabPanel with component add dynamic with js function.
When i add component, this one is add at the end.
It's possible to add component in second position for example ?
addTabPanel (js)
//Add tab in Tabpanel
function addTabs(type, guid)
{
try {
var index = Ext.getCmp('TabPane').items.length + 1;
var tab = Ext.getCmp('TabPanel').add(
{
id: "Tab" + index,
title: type,
closable: true,
layout: 'fit',
border: false,
loader:
{
url: "../modules/module.aspx?i=" + index + "&g=" + guid,
renderer: "frame"
}
});
Ext.getCmp('TabPanel').setActiveTab(tab);
}
catch (err) {
App.direct.UnhandledException(err);
}
}
Regards Yoann
Last edited by Daniil; Dec 07, 2012 at 12:56 PM.
Reason: [CLOSED]