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

爱⌒轻易说出口 提交于 2019-12-18 13:25:21

问题


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


回答1:


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.




回答2:


Spark Based Component

flexwiz spark-tabs-with-close-button



来源:https://stackoverflow.com/questions/67516/flex-how-to-add-a-tab-close-button-for-tabnavigator-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!