I am using mat-table to display records in Grid and using matTooltip to display the tooltip on mousehover.
I want to display the tooltip near mouse pointer or at starting position of the row.
But in my case, Tooltip always displays at the center of the row. I tried set position in css but no luck.
Can someone please help on this.
HTML:
<mat-row
*matRowDef="let row; columns: mGridColumns;"
(click)="onRowClick(mGridDataSource, row)"
[matTooltip]="row.tooltipText" [matTooltipClass]="'row-tooltip'">
</mat-row>
CSS:
.row-tooltip {
position: relative !important;
right: 30px !important;
background-color: #fafafa;
font-size: 12px;
}