tree-multiselect.js
tree-multiselect.js copied to clipboard
Select sections/groups but not children
Can I somehow select a section/group but not their children?
Like turn of allowBatchSelection
but then add checkboxes to the sections/groups.
Yes, onlyBatchSelection
.
edit: hold on, you want to select just a section name? Then no, because there isn't a real option value associated with it.
Yes exactly, I want to select only the section! Isn't there somehow a possibilty to do it? Maybe add a custom checkbox for the section after disabling onlyBatchSelection
.
Sorry, there's no method for doing that since there will be no change in the select
element.
You can select it kinda rough with this
$("div.section div.title input").on('change', function(){
alert( 'clicked!' );
});
I'm also looking for a way to select sections as well, is there a workaround for this?
If anyone is still interested in this, what would the value of a 'section' be? This plugin tries not to modify the select DOM node, but if you want to extract a value for a section, there would need to be generated options added to the node.
Still interested! Value could be the same as the nodename/sectionname (maybe with any prefix/suffix or both?!). Section of this Node is the parent Section.
something like: x prop1 Props x prop2 Props/Sec1 x prop3 Props/Sec2/Sec4 x [Sec3] Props