swiftDialog icon indicating copy to clipboard operation
swiftDialog copied to clipboard

FR: Support for radio buttons

Open mm2270 opened this issue 3 years ago • 2 comments

Hi there. In addition to the checkbox option that swiftDialog already supports, I'd like to see an option for radio buttons.

Although probably less commonly used than checkboxes, radio buttons have their uses when you want to present a list of mutually exclusive options to a user, so only one of the items can be selected, not multiples.

Some other dialoging tools out there support this, and I'd like to see it be an option with swiftDialog too, it at all possible.

mm2270 avatar May 16 '22 14:05 mm2270

BTW, I just wanted to mention that I'm aware that a selectable list is an alternative to radio buttons, since list selections are also mutually exclusive. However, for some scenarios, using radio buttons seems more efficient and easier. For example, if you only need to present 2 - 3 choices, using a selection list seems like overkill. I'd prefer to leave those lists for larger numbers of choices.

mm2270 avatar May 16 '22 19:05 mm2270

yeah, that's a fair assessment. As far as implementation is concerned, the dropdown and radio buttons are the same code just with a different style attached to it. Will add this as a FR for 1.11

bartreardon avatar May 17 '22 00:05 bartreardon

something like this?

image

bartreardon avatar May 02 '23 12:05 bartreardon

Closing this one off - radio buttons were added as a subset of select lists in v2.2 https://github.com/bartreardon/swiftDialog/wiki/Select-Lists-and-Radio-Buttons

bartreardon avatar Jul 09 '23 23:07 bartreardon