Hey <@U6P0EN0DU> good that you figured it out and ...
# tornadofx
n
Hey @jelloranger good that you figured it out and sorry that we are all so busy and not answering as quickly as usual 😉... Regarding your code snippet you can clean it up even a bit more. You can use the togglegroup builder instead of creating the instance by your self. Then there is no need to reference the toggelGroup manually anymore the builder is doing that for you. And last but not least you can introduce a object property which will represent the currently selected Enum value which is done by the
bind
function. For demo purposes i just put the toggleProperty to the top most of the time you will probably put the property in the corresponding view model. Hop this helps 😉
👍 1