0
votes

The cellClass function is not called when the component properties change.

How do I kick a rowClass orcellClass?

@Component({
  ...,
  template: `<ngx-datatable [rowClass]="rowClass"></ngx-datatable>`
})
class SomeComponent {
  someVariable = true;

  rowClass = (row) => {
    return {
      'some-class': (() => { return this.someVariable === row.someVariable })()
    };
  }
}

Related https://github.com/swimlane/ngx-datatable/issues/774