Issue 223: Tree node icon - using added icon class as rendered images css class
Status:  Verified
Owner: ----
Closed:  Aug 2011
Reported by runad...@gmail.com, Aug 26, 2011
Hi,

I would prefer to render tree node icons using css. The addClass attribute with node adds the css class with node <span> element. it would be great to have this class (or define new iconClass attribute) added as css class for the rendered <img> element. e.g.

instead of doing this for icon resource,

res += "<img src='" + opts.imagePath + data.icon + "' alt='' />";

do this

res += "<img class='" + data.addClass + "' src='" + opts.imagePath + data.icon + "' alt='' />";

or any other better way to implement...	
Aug 27, 2011
Project Member #1 moo...@wwwendt.de
In fact the icons _are_ rendered using CSS.
The data.icon option is rarely used anymore, I think.
Have a look at 'Theming and translation' in the docs and see here
    http://wwwendt.de/tech/dynatree/doc/sample-theming.html#
for an example how to implement custom icons.
Status: Done
Jul 17, 2012
Project Member #2 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified
Jan 26, 2013
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release0.0