app.component.html
<h2>
Angular Material -
Button toggle group initially checked items
</h2>
<div style="padding: 25px;">
<mat-button-toggle-group
#toggleGroup="matButtonToggleGroup" multiple>
<mat-button-toggle value="sql">
SQL
</mat-button-toggle>
<mat-button-toggle value="photoshop" checked>
Photoshop
</mat-button-toggle>
<mat-button-toggle value="kotlin" checked>
Kotlin
</mat-button-toggle>
<mat-button-toggle value="bootstrap">
Bootstrap
</mat-button-toggle>
<mat-button-toggle value="html" checked>
HTML
</mat-button-toggle>
</mat-button-toggle-group>
</div>
<h1 style="padding-left:25px;">
Checked items : {{toggleGroup.value}}
</h1>
app.module.ts [import]
import {MatButtonToggleModule} from '@angular/material/button-toggle';
- angular material - Button toggle group appearance
- angular material - How to set Button toggle appearance
- angular material - How to show Tooltip
- angular material - Show Tooltip on a specific position
- angular material - How to change Tooltip background color
- angular material - How to apply custom css style in Tooltip
- angular material - How to use determinate Progress spinner
- angular material - Progress spinner with percentage
- angular material - How to change Progress spinner size
- angular material - How to slow Tabs content transition
- angular material - How to get Tabs selected index
- angular material - How to use Tabs selectedTabChange event
- angular material - How to delete Tab programmatically
- angular material - How to show remove button on Tab label
- angular material - How to show Tab label bottom of content