PDA

View Full Version : tree without icons



mdissel
21 Jul 2010, 6:42 AM
How can i render a tree without the default icons (leaf and folder)

Thanks

Animal
21 Jul 2010, 6:53 AM
By using a CSS rule to make them display:none

mdissel
21 Jul 2010, 7:11 AM
an what css rule should i override? (i'm not a ExtJS css Expert)

Animal
21 Jul 2010, 7:19 AM
It's nothing to do with being an Ext expert. CSS is CSS.

Do you want help with CSS?

mdissel
21 Jul 2010, 7:22 AM
Yes, but there are many css rules for the treenode ... Which one should i override to hide all icons (lead/expanded/collapsed) for a particular treepanel?

Animal
21 Jul 2010, 7:29 AM
Well, one little peek would should you that they have the class "x-tree-node-icon"

So you create a rule targetting those images within your tree. Either using the ID of your TreePanel, or by giving it a class.