How to highlight a column while filtering?

532 Views Asked by At

I have been using Angular 4 with primeng 4 . When sorting is done with
p-datatable of primeng it highlights the column header being sorted. Example : https://www.primefaces.org/primeng/#/datatable/sort

But when filtering is done here, the column header is not highlighted . Example : https://www.primefaces.org/primeng/#/datatable/filter

When I checked with chromebug, I was able to see every time sorting is done , a class gets added : ui-state-active , but this class does not get added while filtering .

Can anybody suggest me as to how I can highlight a column header while filtering like it's being done in sort in the example up above ?

1

There are 1 best solutions below

3
On

style="#{car.remarks eq rsm.search ? 'color:red':'color:blue'}"