Flex 4.5 树组件
- 如何添加树标题和树标题之间的垂直距离第一个节点?
- 选择节点时如何设置节点标签的背景颜色。
- How to add vertical distance between tree header & 1st node of that?
- How to set the background color of node' label when that node is selected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不相信有一种简单的方法可以添加树头和第一个节点之间的垂直距离。可以通过使客户 TreeItemRenderer 只是在顶部添加一个间隙。
要在选择节点时更改节点的背景颜色,您可以使用
或在 mxml 中声明为控件的属性
I don't believe there is an easy way to add vertical distance between tree header and first node. It would be possible through making a customer TreeItemRenderer and just adding a gap at the top.
To change the background color of a node when it is selected you can use
or declared in the mxml as a property of the control