Kun Janos around Adobe’s <Flex> and <Flash>

about me, my life and my work

Hiding a tab in the Flex TabNavigator component

Posted by admin on June 22nd, 2009

After searching for a lot of time, I found out that tab navigator tabs in the Flex TabNavigator component can be hided easily by using the following lines:

var tabIndex:int = 1;
customTabNabNavigator.getTabAt(tabIndex).visible = false;//hides the tab
customTabNabNavigator.getTabAt(tabIndex).enabled = false; //don't let the user to choose the tab using the keyboard

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">