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

myTree.collapseAll is not a function #26

Open
DarthSonic opened this issue Nov 15, 2022 · 1 comment
Open

myTree.collapseAll is not a function #26

DarthSonic opened this issue Nov 15, 2022 · 1 comment

Comments

@DarthSonic
Copy link

myTree.collapseAll is not a function

const myTree = new Tree(...);

myTree has no definition for collapseAll

@ch3sn3k
Copy link

ch3sn3k commented May 19, 2023

It seems that this functionality was removed in version 1.8.3. This version is available through npm but not uploaded here on Github. @daweilv Can you please update the repo to the latest version 1.8.3?

So far you can use

const treeGui = new Tree('#container', {
    data: treData,
    // only expand level 1 node
    closeDepth: 1,
});

as a replacement. See the sourcecode in npm package.

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