hummingbird-treeview icon indicating copy to clipboard operation
hummingbird-treeview copied to clipboard

only allow parent selection when children are viewable/expanded

Open budg1e opened this issue 2 years ago • 3 comments

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

budg1e avatar Mar 23 '22 09:03 budg1e

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

hummingbird-dev avatar Mar 24 '22 15:03 hummingbird-dev

that would be sensational, thank you

budg1e avatar Mar 24 '22 15:03 budg1e

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

hummingbird-dev avatar Mar 25 '22 10:03 hummingbird-dev