Flex:如何为TabNavigator组件添加选项卡关闭按钮

时间:2023-01-19 15:36:59

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

我想要一个TabNavigator组件,其中包含一些选项卡的关闭按钮。我怎么做?似乎TabNavigator组件不允许(或我找不到)此表单的可扩展性。救命。谢谢

2 个解决方案

#1


9  

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

您应该查看FlexLib项目中的SuperTabNavigator组件:

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.

如果你不希望所有选项卡都有关闭按钮(我从你没有的问题中理解),看起来你可以使用setClosePolicyForTab()方法来指定你想要它们的选项卡。

#2


0  

Spark Based Component

基于Spark的组件

flexwiz spark-tabs-with-close-button

#1


9  

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

您应该查看FlexLib项目中的SuperTabNavigator组件:

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.

如果你不希望所有选项卡都有关闭按钮(我从你没有的问题中理解),看起来你可以使用setClosePolicyForTab()方法来指定你想要它们的选项卡。

#2


0  

Spark Based Component

基于Spark的组件

flexwiz spark-tabs-with-close-button