hummingbird-dev / hummingbird-treeview

A powerful and fast jQuery treeview plugin
MIT License
62 stars 23 forks source link

only allow parent selection when children are viewable/expanded #24

Open budg1e opened 2 years ago

budg1e commented 2 years ago

hi -is this possible? From what I've read, I don't think so? I can only disable the parent, but this is needed as a selectable option, just only when the children have been 'seen' -we're basically worried that some people are not going to realise there are child options and needlessly select them all. Having them all open at the start defeats the point of a tree...is there a way of achieving this? Apologies if I've missed something. I've tried checkboxesGroups = 'disabled' and clickGroupsToggle = 'enabled' but this doesn't allow the parent to be selected at all, so each child would need checking....but we might have to go this route

hummingbird-dev commented 2 years ago

Hi, that functionality is not available yet. I'm working on the implementation of that method. Give me a day.

budg1e commented 2 years ago

that would be sensational, thank you

hummingbird-dev commented 2 years ago

Hi, The new method disableParentNodeOnCollapse is implemented. Let me know if it works.