cljfx

https://github.com/cljfx/cljfx
pez 2019-03-27T19:52:07.024700Z

Anyone seen an example of how to use :radio-buttons ? The java examples I find are not very declarative.

vlaaad 2019-03-27T23:13:28.025300Z

Added idiomatic radio-button example: https://github.com/cljfx/cljfx/blob/master/examples/e25_radio_buttons.clj

vlaaad 2019-03-27T23:13:41.025600Z

@pez ^

vlaaad 2019-03-27T23:15:47.027400Z

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.

pez 2019-03-27T23:49:31.031500Z

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.