Remove Folder and File icons from Flex Tree
Line Break
Author: Arjan (34 Articles) - Author Website
Arjan is a SAP Consultant specialized in ABAP and Front End development techniques like Web Dynpro, Adobe Interactive Forms, Flex and AIR. In his free time he likes to create examples for Flex-Blog and other applications using Flex, AIR and PHP. Other hobbies are movies and music. He is also the co-owner of Flex-Blog.com.
The previous example with the custom open / closed icons had a nice result. It would be even nicer though, when the folder and file icons would dissapear.
Luckily, this is also pretty easy to do in Flex, just add a style sheet to your application with the following css in it:
1 2 3 4 5 | Tree{ folderClosedIcon: ClassReference(null); folderOpenIcon: ClassReference(null); defaultLeafIcon: ClassReference(null); } |
Add the stylesheet to your application:
1 | <mx:Style source="assets/styles.css"/> |
Thats it, check out the result:
Related posts:
- Change open and close icons on Flex Tree
- Style Flex Tree Label Example
- Using the ProgressBar with a file download in Flex
- Save Data to File System with AIR in Flex 4
- Data Dependant Tree Icon with Tree in AdvancedDataGrid with iconFunction

