-
-
Notifications
You must be signed in to change notification settings - Fork 604
-
-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with 'collapse all' example #105
Comments
does [Expand All] work for you on the sample page? |
[Expand All] and [Collapse All] work perfect for me on your example page. This is my example
I also tried it without the [span] tags, but without success. |
I could reproduce this. |
Something wrong with my tree? |
no, but the collpase loop has a problem, whe a node was not yet rendered.
|
i have some problem,so sad |
This issue was fixed 3 years ago. |
Hi,
I tried to use this example
$("#tree").fancytree("getRootNode").visit(function(node){
node.setExpanded(false);
});
But I get an error inside the function nodeRender [ (_assert(isRootNode || parent.ul, "parent UL must exist") ].
But the tree looks good.
When I use this for 'collapse all'
$("#tree").fancytree("getRootNode").visit(function(node){
node.setExpanded(true);
node.setExpanded(false);
});
there is no error. But the tree expand completely and then collapse, which doesn't look good.
Any idea?
Thanks a lot!
The text was updated successfully, but these errors were encountered: