| Issue 208: | Change node's icon at run time | |
| 2 people starred this issue and may be notified of changes. | Back to list |
1.I want to change node's icon at run time. I use 2 events (onQueryExpand and onExpand) but it is not work properly. 2. when I click to expand my node, I want to show an icon so i used onQueryExpand to change current icon (node.data.icon = "loading.gif"). After it was expanded (completed),I used onExpand to change to another icon. - I use dynatree-1.1.1 - I use chrome 12 and Firefox 4 I try to see your example, but it does not have. Please help me to fix it.
Jul 5, 2011
Project Member
#1
moo...@wwwendt.de
Labels:
Milestone-Release1.2
Jul 5, 2011
I do not see 1.2. where is it?
Jul 5, 2011
I think you can solve your problem by adding a custom class to the node and an additional CSS rule. 1.2 is not yet released, but I will have a look, if the API can be improved to solve your problem more easily.
Status:
Accepted
Aug 15, 2011
Issue 206 has been merged into this issue.
Aug 15, 2011
here is a sample how to set a custom class at runtime: http://jsfiddle.net/mar10/eTmVU/
Status:
Waiting
Aug 16, 2011
(No comment was entered for this change.)
Status:
Done
Jun 15, 2012
I have the same problem. I have a tree with 10,000 nodes, all under a first node called "All". It takes about 5-6 seconds to render the tree. There is no way to show a loading icon during the render.
Jul 17, 2012
considered verified
Jul 17, 2012
(No comment was entered for this change.)
Status:
Verified
|