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

Disabled node expanding #121

Open
paulodiogo opened this issue May 8, 2019 · 3 comments
Open

Disabled node expanding #121

paulodiogo opened this issue May 8, 2019 · 3 comments

Comments

@paulodiogo
Copy link

paulodiogo commented May 8, 2019

Can I block to expand or collapse a disabled node?

I tried the following => https://codepen.io/paulodiogo/pen/LoVJQv?editors=1010

The node "Social" is { expanded: false, disabled: true, selectable: false }, but is still expandable, can I block it to not expand or collapse?

Would a function for each state in options not be an option?

For example:

options: {
    isExpandable: function(node){ return !node.disabled; }
}

Can I create a PR?

Thank you!

@amsik
Copy link
Owner

amsik commented May 13, 2019

Hi. Yeah, I think it make sense.

@ryanrapini
Copy link

Any updates on this? I would love to have all nodes expanded by default and be able to disable expansion on a node

amsik added a commit that referenced this issue Oct 16, 2019
@amsik
Copy link
Owner

amsik commented Oct 16, 2019

Hi! Please check a new version (0.2.66)

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

3 participants