app.component.html
<h2>
Angular Material - Toggle Tooltip visibility on button click
</h2>
<div style="padding:25px;
justify-content:space-between; display:flex; width:350px;">
<button mat-flat-button
(click)="tooltip.toggle()" color="primary">
Toggle Tooltip
</button>
<button mat-flat-button
color="secondary"
matTooltip="Sample material tooltip"
#tooltip="matTooltip"
aria-label="Display and hide a material tooltip
on another button click">
Tooltip Related Button
</button>
</div>
app.module.ts [import]
// for material button
import {MatButtonModule} from '@angular/material/button';
// for material tooltip
import {MatTooltipModule} from '@angular/material/tooltip';
- angular material - How to set Tooltip show hide delay
- angular material - How to enable disable Tooltip
- angular material - Show & hide Tooltip on button click
- angular material - How to use Divider
- 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