Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex: How to add a tab close button for TabNavigator component

I'd like to have a TabNavigator component that has a close button for some of the tabs. How do I do that?
It seems that the TabNavigator component does not allow (or I could not find) extensibility of this form. Help. Thanks

like image 414
Ran Avatar asked Sep 15 '08 22:09

Ran


1 Answers

You should take a look at the SuperTabNavigator component from the FlexLib project:

  • SuperTabNavigator example
  • SuperTabNavigator documentation
  • FlexLib Component list

If you don't want all of the tabs to have close buttons (I understand from the question that you don't) it looks like you could use the setClosePolicyForTab() method for specifying which tabs you want to have them.

like image 179
hasseg Avatar answered Oct 08 '22 00:10

hasseg