【发布时间】:2016-03-10 20:44:47
【问题描述】:
我有一个可编辑的网格。编辑列时,我会显示脏标志并更改单元格的背景颜色。为此,我更新了 CSS 类:
.x-grid-dirty-cell {
background-image: url(../images/grid/dirty.gif) no-repeat 0 0 !important;
background-color:#ffff4d !important;
}
这很好用。但是,当我更改整行的背景颜色时,脏标志不再显示:
,viewConfig: {
getRowClass: function(record_){
if(record_.COPIED){
return "row-highlight";
}
}
}
CSS:
.row-highlight .x-grid-cell{
background-color:#ffff4d !important;
}
那么我需要在行高亮类中添加哪些属性才能使脏标志不被隐藏?
谢谢
【问题讨论】: