ng2-smart-table
ng2-smart-table copied to clipboard
Class configuration not working
I'm setting up a smart-table, but I can't add a class to an entire column. I've got this configuration:
settings = { columns: { SERIENUMERO: { title: this.translate.instant("invoices.NUMERO"), type: 'text', class: 'align-center' }, TOTAL: { title: this.translate.instant("invoices.TOTAL"), type: 'text', valuePrepareFunction: (cell,row) => row.TOTAL + " € ", }, FECHA: { title: this.translate.instant("invoices.FECHA"), type: 'date' }, EMPRESA: { title: this.translate.instant("invoices.EMPRESA"), type: 'string' }, PDF: { title: this.translate.instant("invoices.PDF"), type: 'custom', valuePrepareFunction: (cell,row) => row, renderComponent: InvoicePDFButtonComponent } }, actions: { add: false, edit: false, delete: false }, };
But in the "SERIENUMERO" column I can't add the "align-center" class. It's courious, because if I check the HTML result code, I found the "align-center" class on the
+1..
Same problem here
Same problem here
+1
Yeap, same problem in Angular 8.2.5 and version 1.5.0 from smart-table.
Same in 2020, v1.5.0, Angular 8.0.
column.class styles only the TH elements.
➕👍 Same problem here, class is only applied to