Anyone seen an example of how to use :radio-button
s ? The java examples I find are not very declarative.
Added idiomatic radio-button example: https://github.com/cljfx/cljfx/blob/master/examples/e25_radio_buttons.clj
@pez ^
I realize there is also a ToggleGroup that uses local mutable state, but it's currently a scalar value instead of dynamic, which is a bug. I will fix it and add another example that uses :toggle-group
property.
Ah, thanks. I was trying it with : toggle-group
, as I thought that was the way to make the buttons toggle. Went with a choice box instead, but I think I want radio buttons, because it will be a clearer UI. Will try the example, looks easy enough.