app.component.html
<h2>Angular Material - Button toggle group multiple selection</h2>
<div style="padding: 25px;">
<mat-button-toggle-group
#toggleGroup="matButtonToggleGroup" multiple>
<mat-button-toggle value="angular">
Angular
</mat-button-toggle>
<mat-button-toggle value="react">
React
</mat-button-toggle>
<mat-button-toggle value="vue">
Vue
</mat-button-toggle>
<mat-button-toggle value="html">
HTML
</mat-button-toggle>
<mat-button-toggle value="css">
CSS
</mat-button-toggle>
</mat-button-toggle-group>
</div>
<h1 style="padding-left:25px;">
You selected : {{toggleGroup.value}}
</h1>
app.module.ts [import]
import {MatButtonToggleModule} from '@angular/material/button-toggle';
- angular bootstrap - How to use Datepicker
- angular bootstrap - Select today from Datepicker
- angular bootstrap - Datepicker navigate to current month
- angular bootstrap - Datepicker navigate & select today
- angular bootstrap - Datepicker navigate event
- angular bootstrap - How to show footer in Datepicker
- angular bootstrap - Datepicker popup position & target
- angular bootstrap - How to use Nav without ul li
- angular bootstrap - How to show vertical pills in a Nav
- angular material - How to use basic Button
- angular material - How to use raised Button
- angular material - How to use FAB
- angular material - How to use mini FAB
- angular material - How to use Button toggle
- angular material - How to use Button toggle group