0

I am trying to add a new line in the matToolTip attribute in Angular app , but its not reflecting in the output .

 <mat-cell *matCellDef="let row"> <div style="min-width: 100px;">{{row.Status}}  </div> 
  <div *ngIf="row.Date!=null" style="margin-left: 70px;"><mat-icon [matTooltip]="'Date/Time: ' + row.Date + '\n' + '\nVersion: ' + row.Version" >info</mat-icon>
   </div> 
   </mat-cell>

Can anyone help on why \n is not producing a new line in the tooltip section ?

TIA

Liam
  • 25,247
  • 27
  • 110
  • 174

0 Answers0