Aug 06, 2013, 8:38 PM
[CLOSED] Enumerating TabPanel instances on the page
Hi,
I'm trying to port a segment of code that enumerates TabPanel instances on the page. It's been working well in 1.x and I'd like it to do the same in 2.x. However, the instances of TabPanel are never found. I do realize that the namespaces have changed in 2.x so Ext.TabPanel has become Ext.tab.Panel but this makes no difference. Please advise if more info is required here.
I'm trying to port a segment of code that enumerates TabPanel instances on the page. It's been working well in 1.x and I'd like it to do the same in 2.x. However, the instances of TabPanel are never found. I do realize that the namespaces have changed in 2.x so Ext.TabPanel has become Ext.tab.Panel but this makes no difference. Please advise if more info is required here.
var tabPanels = [];
callingWindow.Ext.ComponentMgr.all.each(function (c) {
if (c instanceof callingWindow.Ext.tab.Panel) {
tabPanels.push(c);
}
});
Last edited by Baidaly; Aug 07, 2013 at 12:17 AM.
Reason: [CLOSED]