An exclusive-choice list of radio options (the vertical counterpart to UISegmentedControl):
a stacked column of rows, each a dot on the left and a label on the right, with exactly one
selected. Clicking a row selects it and fires onSelect(index); picking another clears the
previous one.
The group is a passive container — the interactive rows are its children — so it lays out and
re-themes like the rest of the library. Rows are fixed-height (rowHeightBase, taller on
mobile for touch); the group's height follows the option count.
Constructor
new(items:Array<String>, width:Float, selected:Int = 0, ?onSelect:Int ‑> Void)
Parameters:
items | the option labels |
|---|---|
width | layout width |
selected | the initially selected index |
onSelect | fired with the new index when the user picks an option |
Variables
Methods
select(index:Int, fire:Bool = false):Void
Programmatically selects an option.
Parameters:
index | the option to select (ignored when out of range or unchanged) |
|---|---|
fire |
|