app.component.html
<h2>
Angular Material - How to set Tooltip show hide delay
</h2>
<div style="padding:50px;">
<button mat-flat-button
color="primary"
matTooltip="Sample material tooltip show hide delay"
matTooltipPosition="right"
matTooltipShowDelay="2000"
matTooltipHideDelay="3000"
aria-label="Display a material tooltip with show delay
2000 milliseconds/2 seconds and hide delay 3000 milliseconds
on focused or hovered over">
Show Tooltip
</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 - Button toggle group appearance
- angular material - How to set Button toggle appearance
- angular material - Button toggle group initially checked items
- angular material - How to show Tooltip
- angular material - How to enable disable Tooltip
- angular material - Show & hide Tooltip on button click
- angular material - Toggle Tooltip visibility 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 - List items separator