Collection of Buttons
The ButtonGroup enables you to render multiple Button components by iterating a collection of configuration objects.
The following example demonstrates this in action. It utilizes the selectedChange event of each button to execute custom logic when the button state is changed.
The ButtonGroup allows you to track which buttons are selected by storing the selection in a custom collection.
To enable this behavior:
- Set the selection mode of the ButtonGroup to
- Handle the selectedChange event of each button in order to update the collection