The easiest way to achieve this IOP is to use normal Mendix buttons wrapped in a bootstrap button group.
Then you can make the logic whatever you like using conditional visiblity expressions.
You can use this widget to show certain values of the enum in a radiobuttonlist: https://appstore.home.mendix.com/link/app/111237/
The widget doesn't support the dynamic part, but you could use conditional visibility to add that.
You can use this widget.