1.定义列的字段样式
cellStyle: function (value, row, index) {
if (row.is_person == 1){
return {css: {"background-color": "rgb(188,29,29)"}};
}else {
return '';
}
}
2.定义行样式
rowStyle:function(row,index) {
if (row.is_person == 1){
return {css: {"background-color": "rgb(24,188,156)"}};
}else {
return '';
}
},