In a previous example, “Removing folder icons from the Flex Tree control”, we saw how to remove the folder icons from a Tree control in Flex so only the disclosure (arrow) icons were visible. In the following example we look at a similar technique for removing the default leaf icons from the Tree control in Flex.
The short answer, set the defaultLeafIcon style to null using CSS, as shown in the following snippet:
<mx:Style>
Tree {
defaultLeafIcon: ClassReference(null);
}
</mx:Style>
The long answer? Keep reading!
Full code after the jump.
Continue reading ‘Removing leaf icons from the Flex Tree control’




