Class configuration not working
See original GitHub issueI’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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:7
Top GitHub Comments
Same in 2020, v1.5.0, Angular 8.0.
column.class styles only the TH elements.
➕👍 Same problem here, class is only applied to
Top Results From Across the Web
Top Related Medium Post
Top Related StackOverflow Question
Troubleshoot Live Code
Top Related Reddit Thread
Top Related Hackernoon Post
Top Related Tweet
Top Related Dev.to Post
Top Related Hashnode Post
Tooltip on action buttons
'setPage' method not working