Sochettra / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Change node's icon at run time #208

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by gaeasys....@gmail.com on 14 Jun 2011 at 11:07

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 5 Jul 2011 at 7:39

GoogleCodeExporter commented 8 years ago
I do not see 1.2. where is it?

Original comment by gaeasys....@gmail.com on 5 Jul 2011 at 7:50

GoogleCodeExporter commented 8 years ago
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.

Original comment by moo...@wwwendt.de on 5 Jul 2011 at 3:02

GoogleCodeExporter commented 8 years ago
Issue 206 has been merged into this issue.

Original comment by moo...@wwwendt.de on 16 Aug 2011 at 6:05

GoogleCodeExporter commented 8 years ago
here is a sample how to set a custom class at runtime:
  http://jsfiddle.net/mar10/eTmVU/

Original comment by moo...@wwwendt.de on 16 Aug 2011 at 6:07

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 16 Aug 2011 at 7:36

GoogleCodeExporter commented 8 years ago
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.

Original comment by TheRealP...@gmail.com on 15 Jun 2012 at 5:18

GoogleCodeExporter commented 8 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19