Flex:如何为 TabNavigator 组件添加选项卡关闭按钮 [英] Flex: How to add a tab close button for TabNavigator component

查看:26
本文介绍了Flex:如何为 TabNavigator 组件添加选项卡关闭按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个 TabNavigator 组件,它有一些选项卡的关闭按钮.我怎么做?
TabNavigator 组件似乎不允许(或我找不到)这种形式的可扩展性.帮助.谢谢

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

推荐答案

您应该查看 FlexLib 项目:

如果您不希望所有选项卡都有关闭按钮(我从问题中了解到您没有),看起来您可以使用 setClosePolicyForTab() 方法,用于指定您想要哪些选项卡.

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.

这篇关于Flex:如何为 TabNavigator 组件添加选项卡关闭按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆