liquor-tree
liquor-tree copied to clipboard
Disabled node expanding
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!
Hi. Yeah, I think it make sense.
Any updates on this? I would love to have all nodes expanded by default and be able to disable expansion on a node
Hi! Please check a new version (0.2.66)