ButtonBar possible improvements

I’ve been using lately button bars. And I think it needs tiny improvements.

  • being able to set to a selectedButton ( or at least not have a public setter)
  • being able to set to a non existent selected Index, now it’ s doing an error, but it should unselected everything else.

A great less tiny improvements could be to have an option to unselect a button on the button bar , by clicking on it.

Cool - yeah, they all seem like pretty reasonable improvements, and none of them sound complex either (the one about “being able to set to a non existent selected Index” actually feels like a bug).

Ill take a look sometime this week.

Cheers!
Ian

Right, so, in haxeui-core git:

Done - setting to null will deselect

Done - i think this was a bug to be fair - you can also deselect with -1, any other index (that doesnt make sense, ie, 1000) will simply be ignored

Done - to allow this you have to set allowUnselection to true

Cheers!
Ian

1 Like

Awesome! Thanks, already using it :slight_smile:

1 Like