app.component.html
<h2>Angular Material - How to set Button toggle appearance</h2>
<div style="padding:25px; background-color:lightgray;">
<h3>Appearance Standard (Default)</h3>
<mat-button-toggle
value="flash"
#toggleWifi
appearance="standard">
Wifi
</mat-button-toggle>
<h1 style="padding:25px;">
Wifi is {{toggleWifi.checked? 'on' : 'off'}} now.
</h1>
</div>
<div style="padding:25px; background-color:lightgray;">
<h3>Appearance Legacy</h3>
<mat-button-toggle
value="flash"
#toggleLocation
appearance="legacy">
Location
</mat-button-toggle>
<h1 style="padding:25px;">
Location is {{toggleLocation.checked? 'on' : 'off'}} now.
</h1>
</div>
app.module.ts [import]
import {MatButtonToggleModule} from '@angular/material/button-toggle';
- angular material - Button toggle group appearance
- angular material - Button toggle group icon only
- angular material - Icon only Button toggle
- angular material - Vertical Button toggle group
- angular material - Progress bar with percentage
- angular material - How to use indeterminate Progress bar
- angular material - How to use buffer Progress bar
- angular - How to change default font
- angular - How to do a task after a delay
- angular - How to use setInterval()
- angular material - How to change Progress bar height
- angular material - How to change Divider color
- angular material - How to change Progress bar width
- angular material - How to change Divider margin
- angular material - How to use Progress spinner