PDA

View Full Version : [SOLVED] Check which tabs are hidden and which are not



shahdollie
12 Jan 2011, 4:37 PM
Hi everyone,

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

shahdollie
12 Jan 2011, 8:44 PM
Hi,

Using following you can find which tabs are visible and which are not:


Ext.get(tab.ownerCt.getTabEl(tab)).isVisible(); // tab = tab of a tabpanel


Thanks to Hemlock (http://stackoverflow.com/users/528507/hemlock).
Regards