开发者

Flex 4.5 Tree component

  • 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.


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

myTree.setStyle( "selectionColor", 0x0000FF );

or declared in the mxml as a property of the control

<mx:Tree selectionColor="0x0000FF" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜