Skip to content
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

How close all nodes programmatically, when several nodes is opened? #41

Closed
DanStopka1985 opened this issue Oct 5, 2015 · 3 comments
Closed

Comments

@DanStopka1985
Copy link

Hello! I using ngJsTree, it's a super helpful for me! But i don't know, how close all nodes programmatically, when several nodes is selected. How can i do this? Thanks!

@ezraroi
Copy link
Owner

ezraroi commented Oct 5, 2015

Did you check the js tree docs?
https://www.jstree.com/api/#/?f=close_all([obj, animation])

You can use the api of the tree for that

@DanStopka1985
Copy link
Author

I'am tried this: $scope.treeInstance.jstree(true).close_all();
but nothing happened.
I posted my question there http://stackoverflow.com/questions/32911978/how-collapse-all-ng-js-tree-nodes-programmatically
Maybe I'm doing something wrong. I would be thankful for help!

@ezraroi
Copy link
Owner

ezraroi commented Oct 6, 2015

Answered your question, closing the issue as this is not an issue of the ngJsTree

@ezraroi ezraroi closed this as completed Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants