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" />
精彩评论