Tag Archive for 'folderopenicon'

25
Jan

Removing folder icons from the Flex Tree control

The following example shows how you can remove the folder icons from the Tree control in Flex so that only the disclosure (arrow) icons and leaf icons are visible.

The short answer, set the folderClosedIcon and folderOpenIcon styles to null using CSS, as shown in the following snippet:

<mx:Style>
    Tree {
        folderClosedIcon: ClassReference(null);
        folderOpenIcon: ClassReference(null);
    }
</mx:Style>

The long answer?
Full code after the jump.

Continue reading ‘Removing folder 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’