RadioButton
Circular option selector for mutually exclusive choices inside a RadioGroup.
Overview
RadioButton displays a round selector dot alongside text. When joined with a RadioGroup, selecting one button automatically deselects all other buttons in that group.
Option Selection
RadioGroup difficulty = new RadioGroup();
RadioButton easy = new RadioButton("Easy", "easy").group(difficulty);
RadioButton hard = new RadioButton("Hard", "hard").group(difficulty);
easy.checked(true);
Related links
API
RadioButton::group(RadioGroup)
Assign RadioGroup
Assigns the RadioGroup managing mutual exclusivity.
| Parameter | Type | Description |
|---|---|---|
group |
RadioGroup |
— |
Returns RadioButton: this widget for fluent configuration.