| Issue 204: | ability to set Folder Icon | |
| 2 people starred this issue and may be notified of changes. | Back to list |
So far, I know that we can set node.data.icon easily. But I'm not sure if we can set the same for Folder Icon? Because folder has 2 states (icons): expanded & collapsed. I know we can use CSS to set folder icon, *but* I'd like to set customized icons (both states) for *each* folder. Is that possible to do such thing? Great work! Thanks.
Jun 5, 2011
Project Member
#1
moo...@wwwendt.de
Status:
Waiting
Jun 6, 2011
I have a ContextMenu 'change icon' for both nodes & folders. User will be able to set different icons for each of them, so 'addClass' won't work here...
Jul 5, 2011
(No comment was entered for this change.)
Labels:
Milestone-Release1.2
Jul 5, 2011
If you have a Dynatree node you can do
$(node.span).addClass("custom1");
The node object can be retrieved from
- Dynatree event argument
- $("#tree").dynatree("getActiveNode");
- $.ui.dynatree.getNode(element)
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
|