-2

I'm trying to add a class to my cells in my ngx-datatable.

columns.push({ 
    cellTemplate: this.bodyPositionsTmpl, 
    cellClass: 'test', 
    headerTemplate: this.headerPositionsTpl, 
    name: 'Employments', 
    width: this.planningGridColumnWidths.position, 
    frozenLeft: true, 
    frozenRight: false 

});

However when I inspect my elements I dont the see the class added:

<datatable-body-cell ....... class="datatable-body-cell sort-active">

Should it not be present here?

Kasper Sommer
  • 409
  • 1
  • 6
  • 18

1 Answers1

0

It does work just as it should. I just added the class the wrong place. Sorry!

Kasper Sommer
  • 409
  • 1
  • 6
  • 18