akveo / akveo/ng2-smart-table

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

未关闭
#1,157 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。