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

Add mutually exclusive options to presets (radio buttons) #2794

Open
rochford77 opened this issue Feb 2, 2022 · 1 comment
Open

Add mutually exclusive options to presets (radio buttons) #2794

rochford77 opened this issue Feb 2, 2022 · 1 comment

Comments

@rochford77
Copy link

Is your feature request related to a problem? Please describe

The new options groups in the Configurator are really amazing. That said, it's frustrating not being able to make an option group mutually exclusive/select only one.

Describe the solution you'd like

I would like to be able to add a $is_mutually_exclusive or $is_radio or $select_one tag/decorator to an option group, which would give that option group radio buttons rather than checkboxes. If I have an option group called "cell count" and has the options 3s, 4s, 6s, I don't want them to be able to select multiple, especially if the options each change the same parameter, as that would result in only the final option being implemented. I want the user to only be able to pick one option withing the group in this scenario.

Describe alternatives you've considered

I think the main idea is pretty clear and concise, I don't see many alternatives.

Other information

No response

@KarateBrot
Copy link
Member

KarateBrot commented Feb 6, 2022

That's a very nice idea. We have multiple possibilities, for example:

  • Besides OPTION_GROUP we could add a mutually exclusive option group, like OPTION_GROUP_MUTEX.
  • We could also add a #$ MUTEX flag, which makes sure all option buttons in the flag's scope are mutually exclusive. This would be more flexible and would also work for option buttons in the "global scope".

Just some initial brainstorming....

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

No branches or pull requests

3 participants