1. The cell is provided css style
{title: '插入日期', field: 'insertDate', visible: true, align: 'center', valign: 'middle',
cellStyle:{
css: {"overflow": "hidden", "text-overflow": "ellipsis", "white-space": "nowrap"}
}
}
The contents of the cell is provided css style
{title: '插入日期', field: 'insertDate', visible: true, align: 'center', valign: 'middle',
cellStyle:function(value,row,index){
if (value==1){
return {css:{"background-color":"red"}}
}else{
return {css:{"background-color":"green"}}
}
}
}