observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Add an option so that Input.Table can have radio instead of checkbox. #482

Closed Anaglyph-ic closed 1 year ago

Anaglyph-ic commented 1 year ago

I use input.tables as elaborate selector list, and in most cases I need my users to select only 1 item in the list.

Describe the solution you'd like Add a boolean option that lets you switch from checkboxes (many choices) to radio (only one choice).

Describe alternatives you've considered I can implement this myself, but this sounds overkill compared to you making it standard?

mootari commented 1 year ago

You can provide the option {multiple: false} to force a single selection (see the list of available options and this example).

Anaglyph-ic commented 1 year ago

Aaaaand that solves it, thanks for the pointer, sorry for the useless request.