app.component.html
<h2>
Angular Material - Show Tooltip on a specific position
</h2>
<!-- position : left,right,above,below,before or after -->
<div style="padding:75px ;">
<button mat-flat-button
color="primary"
matTooltip="This is a sample material tooltip"
matTooltipPosition="above"
aria-label="Display a material tooltip on button above
on focused or hovered over">
Tooltip on above
</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 initially checked items
- angular material - How to show Tooltip
- angular material - How to change Tooltip background color
- angular material - How to apply custom css style in Tooltip
- 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 vertical Divider height
- angular material - How to change Divider margin
- angular material - How to use Progress spinner
- angular material - How to use Card
- angular material - How to use Tabs
- angular material - How to use custom label in Tabs
- angular material - Action list with button and icon
- angular material - How to use Selection List