I want a add a particular style to a frozenLeft
ngx datatable column upon scroll. So far what I have achieved is triggering a function call on scroll and setting a flag to true to indicate that the style should be applied.
onScroll(event){
if(event.offsetX > 0){
this.flag=true;
}
}
But, in ng-datatable column [ngClass]="{'custom-style': flag}"
is not working (class is not getting appended to the element).
Also tried [cellClass]
I am not able to figure out how to use [cellClass]="getClass"
to trigger the change whenever I scroll.
Your help is appreciated.