Angular-Material: display a tooltip on a form label

Discussão em 'Angular' iniciado por Stefan Schönbächler, Fevereiro 24, 2025.

  1. I would like to display a tooltip on a label. Unfortunately this does not work. Is there a simple solution ?

    <mat-form-field >
    <mat-label matTooltip="Please enter your E-Mail Address">
    E-Mail <mat-icon>help_outline</mat-icon>
    </mat-label>
    <input
    matInput
    placeholder="Enter your email"
    [formControl]="email"
    >
    <mat-error *ngIf="email.invalid">{{getErrorMessage()}}</mat-error>
    </mat-form-field>


    See this Stack-Blitz Example

    Continue reading...

Compartilhe esta Página