My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 204: ability to set Folder Icon
2 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Aug 2011


 
Reported by mrdu...@gmail.com, Jun 4, 2011
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
I think this can be done by adding custom classes for your folders (using `addClass`) and than have your own extended CSS definitions for it.
Status: Waiting
Jun 6, 2011
#2 mrdu...@gmail.com
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
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release1.2
Jul 5, 2011
Project Member #4 moo...@wwwendt.de
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)
Aug 15, 2011
Project Member #5 moo...@wwwendt.de
sample:
http://jsfiddle.net/mar10/eTmVU/
Status: Done
Jul 17, 2012
Project Member #6 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #7 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified

Powered by Google Project Hosting