-
27 Jan 2010 7:25 AM #1
Remove icon from tree node
Remove icon from tree node
I want the tree nodes to render without icons. I'm setting an iconCls: 'new-cls'
which is:
but this class is just adding to the existing one (x-tree-node-icon). If I remove x-tree-node-icon class (in the firebug) I get the desired result, but how do I remove it before the tree renders?Code:.new-cls { background-image: url('../../lib/ext/resources/images/default/s.gif'); }
-
23 Feb 2010 2:51 AM #2
I have the same problem and the only solution I found is to declare CSS class (new-cls in your case) like this:
But this will leave an ugly white space between the text and the +/- icons. If you make it like thisCode:.new-cls{ background-image: none !important; }
than it will be a nice looking tree without icons. Worked fine for me in FireFox, haven't tested it in IE.Code:.new-cls{ background-image: none !important; width: 0 !important; }
Upd.: Works in IE as well.



Reply With Quote