akveo / akveo/ng2-smart-table

Alternate Color for Rows: even rows don't change.

Đang mở
#1,157 9 bình luận 0 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ả

here is my local css:
```
:host /deep/ tr.solved {
background: rgba(86, 241, 86, 0.5);
}
:host /deep/ tr.aborted {
background: rgba(243, 69, 69, 0.5);
}
```

here is some part of my component:
```
settings = {
actions: {
columnTitle: "Eylemler",
},
rowClassFunction: (row) => {
if (row.data.ActivityType == Activity.Type.INCOME)
return 'solved';
else
return 'aborted';
},
mode: "external",
noDataMessage: "Kayıt Bulunamadı",
add: {
addButtonContent: '',
createButtonContent: '',
cancelButtonContent: '',
},
edit: {
editButtonContent: '',
saveButtonContent: '',
cancelButtonContent: '',
},
delete: {
deleteButtonContent: '',
},
columns: {
activityType: {
title: "Tip",
type: "string",
valuePrepareFunction: (value) => {
return Activity.ActivityTypes[value];
},
width: "3%",
},
...
...
```
my data values are correct. but if you want I can share them too.

as you can see only the odd colums are changing:
![1](https://user-images.githubusercontent.com/32572999/80434770-5e67f580-8903-11ea-8b11-7124f6d09b3a.png)

my guess is that some row high lighting styles (for even row) are overriding my option. thanks in advance.

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.