abcid d
abcid d

Reputation: 2953

Add a CSS Class inside <ngx-datatable-column

I need to add a CSS class directly inside the header <ngx-datatable-column ...>. First, I use a normal class

<ngx-datatable-column class="myClass"...>

myClass doesn't show up. Then I try

<ngx-datatable-column [headerClass]="myClass"...>

It doesn't show, either!

Please help me how to add a CSS class directly inside a header of <ngx-datatable-column ...>

Upvotes: 2

Views: 4189

Answers (2)

Andrej
Andrej

Reputation: 21

not enough quotes

<ngx-datatable-column [headerClass]="'myClass'"...>

Upvotes: 2

br.julien
br.julien

Reputation: 3460

I am not sure about it, but try this instead :

<ngx-datatable-column headerClass="myClass"...>

Upvotes: 0

Related Questions