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 195: Keep LI class names persistant after render
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  May 2014


 
Reported by joly.bas...@gmail.com, Apr 29, 2011
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,
jquery.dynatree.js
94.4 KB   View   Download
May 3, 2011
Project Member #1 moo...@wwwendt.de
Ad 2.: 
you could use the onExpand callback.

Ad 1.:
I mark this as 'discussion'. Can you explain why you need it?
Summary: Keep LI class names persistant after render
Labels: Milestone-Discussion
May 3, 2011
#2 joly.bas...@gmail.com
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)
May 3, 2011
Project Member #3 moo...@wwwendt.de
in this case the addClass option may help?
    <li data="addClass: 'customClass1'">Pretty node
May 3, 2011
#4 joly.bas...@gmail.com
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).
May 1, 2014
Project Member #5 moo...@wwwendt.de
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
Status: WontFix

Powered by Google Project Hosting