liquor-tree
liquor-tree copied to clipboard
Is there a way to block a node from collapsing / expanding
Is there a way to block nodes from collapsing / expanding? We have a form as subnode which has to be evaluated. Once the form is invalid every node collapse or expand of another node should be blocked temporarely until the form is valid. Is there any solution for that?
Yes. You can disabled nodes witch should be not collapsable. See Docs
this.$refs.tree.find({}, true).forEach(node => node.enable())
I've found that it might be useful to add methods disable
and enable
to the Selection API. It will be added to 0.2.67
version.
So you can do like:
this.$refs.tree.find(node => node.hasChildren(), true).enable()
Sounds great. Thank you.
dude the checkbox size is too big. 20px width and height would be nice. I can't override it with css either