I am currently working with Angular Material Mat-Table and I have a requirement to show a tooltip when hovering over any row. Essentially, I need to filter data from mGridDataSource based on the row id. Since I am new to Angular, I would greatly appreciate any assistance with this.
Below is a snippet of the HTML file:
<mat-row *matRowDef="let row; columns: mGridColumns;"
[ngClass]="{hovered: row.hovered, highlighted: row.highlighted}"
(click)="onRowClick(mGridDataSource, row)"
matTooltip = {{myToolTip}} (mouseover)="getToolTip(row); ">
</mat-row>
And here is part of the ts file:
getToolTip(row) {
this.matTooltip = '';
}