akveo / akveo/ng2-smart-table

Class configuration not working

Đang mở
#549 7 bình luận 4 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
867
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.