akveo / akveo/ng2-smart-table

Class configuration not working

Open
#549 7 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

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 of that column. But I want it in the entire column, not only on the header. Is this possible? Or this is a bug?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.