PDA

View Full Version : How to get TabPanel TabPanelItems?



extjsnewb
2 Dec 2009, 11:22 PM
I have a TabPanel with a variable number of TabPanelItems associated with it. How do I iterate through these tab panel items and access properties?

Here is some pseudo code to show you want I want to do:



foreach (TabPanel.TabPanelItems as item) {
if (item.id = TabPanel.getActiveTab().id) {
// do something
} else {
// do something
}
}

LutzAlbers
3 Dec 2009, 3:06 AM
Something like this:



TabPanel.items.each(function(item) { ... do stuff with item; });