Question

I have a tabpanel where some tabs are hidden. How can i check which tabs are hidden and which are not.

For example: - There are 5 tabs tab1, tab2, tab3, tab4, tab5. tab2 and tab4 are hidden. - if i m in tab1 then tab2.hidden is true or tab2.isVisible() is false - if i m in tab1 then tab3.hidden is true or tab3.isVisible() is false

So how can i check the actual hidden tabs???? Thanks a lot for help Regards

Was it helpful?

Solution

I'm guessing that you are looking for the visibility of tab strip item. You can get the tab's node with getTabEl(tab) on the TabPanel. From the tab you can use:

Ext.get(tab.ownerCt.getTabEl(tab)).isVisible();

Note, regardless of the name getTabEl returns a DOM node not an Ext.Element which is why you need the Ext.get (or Ext.fly if you like to live dangerously).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top