【发布时间】:2017-02-18 11:18:36
【问题描述】:
我正在使用 ag-grid 5.1.2 我已经配置了一个 getRowStyle 函数来设置某些项目的背景颜色。
I've noticed that has overridden the 'selected row' color now, so when a row is selected the background will not change to indicate as such.
What is the correct way to still let highlighted row color work with自定义 getRowStyle。
以下是 rowStyle 函数的打字稿:
self.customRowStyle = function (params: AgParams) {
if (!params.data.isShaded) {
return {
'background-color': '#CEDDDD'
};
}
return null;
}
【问题讨论】:
标签: ag-grid