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

Support for “select” type #25

Open
miller79 opened this issue Apr 28, 2023 · 2 comments
Open

Support for “select” type #25

miller79 opened this issue Apr 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@miller79
Copy link

With support for the radio type to perform like a select drop-down box, support should also be added for the select type to perform similarly. Some thought may be needed to support multiple selections but as a version 1 supporting select one should be supported.

@dillonredding
Copy link
Member

I don't see the value in supporting select as a way of getting a drop-down since that's semantically identical to radio. It makes no difference to a non-UI client either.

However, the idea of a multi-select is interesting. I can think of two options.

Option 1: Extension

We support a multiple extension on a radio field indicating whether to allow multiple selections. Downside is this is counterintuitive since radio heavily implies single choice.

Option 2: select Exclusively Multiple

Rather than require an extension, we assume a select field implies multiple. So, radio means the field's value is only one of the options' value, whereas select means the field's value is an array of zero or more of the options' value.

I personally prefer option 2 because it only defines semantics for a new field type and doesn't introduce a new extension.

@miller79
Copy link
Author

That’s fair. I think option 2 is the most practical.

@dillonredding dillonredding added the enhancement New feature or request label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants