Forums - C# Corner

Forum guidelines
Mandar Shinde

Mandar Shinde

  • 1.5k
  • 267
  • 3.7k

How to highlight last record/row of a table

Apr 5 2019 6:49 AM
I am trying to highlight last record/row of table with his id in angular 6. what i am doing is-
I am retriving some records from a database and showing in dynamic table.i want to highlight last row of that table and want to call click event of that highlighted row to show some for that row id but its not working.Any help will be appericiated.
<tr *ngFor="let item of items1 ; let i = index"
(show) ="Highlighted(item,item.ID)" (click)="GetData(item,item.ID)"
[ngClass]="{'highlight' : item.AppDateTime == selectedName}" id="cursor">

Answers (2)