Flex 4 中的垂直选项卡
我想在 Flex 4 中拥有垂直选项卡。我已经开始通过在一侧放置一个垂直列表来实现这一点。在列表选择中,我正在更新视图堆栈的选择索引。这提供了垂直选项卡的功能。
我的问题是外观和感觉。如何使列表具有与水平选项卡栏类似的外观和感觉?这是皮肤覆盖的情况吗?
我找到了这篇文章:
确实实现了垂直制表符。我的问题是我在选项卡中没有收到任何文本。我认为问题在于,这最初是为 Flex 2 编写的。我正在使用 Flex 4,并尝试将此组件放入“
任何指针都会很棒”中。
谢谢
I would like to have vertical tabs in Flex 4. I have started implementing this by having a vertical list down one side. On list selection I am updating the selection index of a view stack. This gives the functionality of vertical tabs.
My problem is the look and feel. How do I get the list to have a similar look and feel to the horizontal tab bar? Is it a case of overriding skins?
I have found this post:
Is there a way to make a <s:TabBar /> vertical?
which does implement vertical tabs. My problem with this is that I do not get any text in the tab. I think the problem is that this was originally written for flex 2. I am using flex 4 and am trying to put this component inside a
Any pointers would be great.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最简单的解决方案位于 http:// /blog.flexexamples.com/2009/02/13/creating-a-vertical-fxbuttonbar-control-in-flex-gumbo/
如果您看一下 ButtonBar皮肤,你会看到默认情况下它使用特殊的水平布局 - ButtonBarHorizontalLayout。根据您的需求,您可能想要实现自己的垂直布局,或者仅使用标准的 VerticalLayout。
Simplest solution at http://blog.flexexamples.com/2009/02/13/creating-a-vertical-fxbuttonbar-control-in-flex-gumbo/
If you take a look at the ButtonBar skin, you'll see that by default it uses a special horizontal layout - ButtonBarHorizontalLayout. Depending on your demands, you might want to implement your own vertical layout, or just use the standard VerticalLayout.
使用错误很多的链接我有以下有效:
Using bug a lot's link I have the following which works:
我对 Flex 还很陌生,所以我想,我可以为任何面临类似困难的人发布我的解决方案,就像我一样。如果相同的解决方案有更好的方法,我很乐意接受建议!
经过对 TabbedViewNavigator 的 Skinclass 进行大量研究后,我决定制作自己的 TabbedViewNavigator/SplitView。为了帮助正在搜索的其他人,
我创建了一个面板作为主容器,包括两个面板(mainViewContainer - 由我正在编码的应用程序的主视图和右侧的垂直 TabBar 组成,以及 sideViewContainer - 用于聊天、用户列表和工具列表,应在 TabClick 上打开)。我根据当前状态调整了面板的大小。
对于 TabBar 的行为,我编写了四个处理程序:
并为组件 (MainView) 提供了以下事件:
这个解决方案可能看起来有点过载,但正如我所说,我对 Flex 非常陌生。我希望这对某些人有帮助:)
i'm still quite new to Flex, so I thought, I might post my solution for anybody facing similar difficulties, as I did. If there are nicer ways for the same solution, I'll gladly take advices!
After a lot of research about the Skinclass from TabbedViewNavigator, I decided to make my own TabbedViewNavigator/SplitView. To help others, who are searching
I created one panel as main container including two panels (mainViewContainer - consisting of the main view for the application I am coding and a vertical TabBar on the right, and sideViewContainer - for a chat, an userlist and a toolslist, which should open on TabClick). I resized the panels depending on the current State.
For the behaviour of the TabBar, i wrote four handlers:
And gave the component (MainView) the following events:
This solution might seem a bit overloaded, but as I said, I'm very new to Flex. I hope this is helpfull for some people :)
您尝试过
rotation=90
吗?当然,通过坐标校正 - 它将围绕左上角旋转。Have you tried
rotation=90
? With coordinate correction, of course - it will be rotated around top left corner.