| Issue 223: | Tree node icon - using added icon class as rendered images css class | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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...
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
Jan 26, 2013
(No comment was entered for this change.)
Labels:
Milestone-Release0.0
|
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.