-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
All jstree nodes is opened by default #921
Comments
Nodes will never be opened by default. By default they are all closed. You can explicitly show them using However - any selected nodes will be revealed by default - this is why your tree is opened. You can stop this by setting Either modify the default by using: $.jstree.defaults.core.expand_selected_onload = false; Or per instance using the config: $('#tree').jstree({
core : {
expand_selected_onload : false,
... |
Thanks, that did the trick! :) |
Dear Vakata, |
Nevermind - figured it out with
|
A little more elegant...
|
I am trying to keep the entire tree expanded on load. And I am working with reactJs, so there is no onload/ready being used. This is my sample code new_data is the actual object i pass for the tree data. The tree comes up fine , my only concern is to keep it fully open on loads always. |
Hi, i tried all posiible way to do it. but it's not working. $j("#jstree").jstree({
|
I try to load a tree with all nodes closed.
I have tried set "state": { "opened": false }
I found another issue, #436, and tried setting:
$.jstree.defaults.checkbox.three_state = false;
with no luck.
In the documentation, the "opened" property is a boolean.
Here is my code:
The text was updated successfully, but these errors were encountered: