I'm using the PrimeNg Datatable as follows and I need to put a specific css class to each cell I'm able to pass the css class as [class]="cssClassName" coming from the model but the class is only applied when the control is focused. Is it there a way to apply the class without the need of focus the control?
Thanks in advance.
The example is like it appears on the documentation
<p-dataTable [value]="cars" [editable]="true" resizableColumns="true">
<p-column *ngFor="let col of cols, let c = index" [field]="col.Field" [header]="col.Text" [editable]="true" >
<ng-template let-col let-car="rowData" pTemplate="editor" let-r="rowIndex">
<div [class]="cssClassName">
<input [(ngModel)]="car[col.field]" appendTo="body" [class]="cssClassName">
</div>
</ng-template>
</p-column>
</p-dataTable>