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.

Example
View Source
Edit In Stackblitz  
Change Theme:

Storing the Selection

The ButtonGroup allows you to track which buttons are selected by storing the selection in a custom collection.

To enable this behavior:

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?