Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select sections/groups but not children #59

Open
zampage opened this issue Jan 29, 2018 · 7 comments
Open

Select sections/groups but not children #59

zampage opened this issue Jan 29, 2018 · 7 comments

Comments

@zampage
Copy link

zampage commented Jan 29, 2018

Can I somehow select a section/group but not their children?

Like turn of allowBatchSelection but then add checkboxes to the sections/groups.

@zampage zampage changed the title Select sections/groups Select sections/groups but not children Jan 29, 2018
@patosai
Copy link
Owner

patosai commented Jan 29, 2018

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.

@zampage
Copy link
Author

zampage commented Jan 29, 2018

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.

@patosai
Copy link
Owner

patosai commented Jan 29, 2018

Sorry, there's no method for doing that since there will be no change in the select element.

@itorlakov
Copy link

You can select it kinda rough with this

  $("div.section div.title input").on('change', function(){
    alert( 'clicked!' );
  });

@bomsn
Copy link

bomsn commented Jul 8, 2018

I'm also looking for a way to select sections as well, is there a workaround for this?

@patosai
Copy link
Owner

patosai commented May 17, 2020

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.

@benhaze
Copy link

benhaze commented Apr 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants