pcirella / dynatree

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

Keep LI class names persistant after render #195

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First, for one of my projects, I needed to keep the classes assigned to the li 
tag.

I made ​​some changes to your source for that.

See attached file

Secondly, I must execute a callback function after the action 'expand'. if you 
have already developed a similar function, you can send it to me. 
Otherwise I develop it and you'll send it.

Regards,

Original issue reported on code.google.com by joly.bas...@gmail.com on 29 Apr 2011 at 12:00

Attachments:

GoogleCodeExporter commented 9 years ago
Ad 2.: 
you could use the onExpand callback.

Ad 1.:
I mark this as 'discussion'. Can you explain why you need it?

Original comment by moo...@wwwendt.de on 3 May 2011 at 12:08

GoogleCodeExporter commented 9 years ago
I missed this option when I looked.

I need the onExpand option for my contextual menu. When the tree is collapse 
and after expands,  the child nodes don't bind the event to show the menu.

my change to allow the persitence of classes aims to use these classes as 
JQuery selector's (eg. multiple contextual menus in the same tree)

Original comment by joly.bas...@gmail.com on 3 May 2011 at 12:32

GoogleCodeExporter commented 9 years ago
in this case the addClass option may help?
    <li data="addClass: 'customClass1'">Pretty node

Original comment by moo...@wwwendt.de on 3 May 2011 at 2:52

GoogleCodeExporter commented 9 years ago
Yes probably, but the attribute 'data' is not a valid attribute for the element 
ul.

I also can not change the structure of my source tree (third-party application).

Original comment by joly.bas...@gmail.com on 3 May 2011 at 3:25

GoogleCodeExporter commented 9 years ago
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that 
the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree

Original comment by moo...@wwwendt.de on 1 May 2014 at 4:38