Tag Archive for 'defaultleaficon'

25
Jan

Removing leaf icons from the Flex Tree control

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’

26
Nov

Displaying the default icons from a Flex Tree control

I was looking through the Tree class today and was a little curious about what the disclosureOpenIcon and disclosureClosedIcon styles were, and ended up making the following little sample.

Full code after the jump.

Continue reading ‘Displaying the default icons from a Flex Tree control’

14
Nov

Customizing folder and leaf icons in the Flex Tree control using the folderOpenIcon, folderClosedIcon, and defaultLeafIcon styles

The following example shows how you can change the default folder and leaf node icons in a Flex Tree control.

Full code after the jump.

Continue reading ‘Customizing folder and leaf icons in the Flex Tree control using the folderOpenIcon, folderClosedIcon, and defaultLeafIcon styles’