Go to my github

jqGrid--设置单元格字体颜色

colModel: [
                {
                    name: '列名称',
                    index: '列名称',
                    width: 65,
                    sortable: true,
                    resizable: false,
                    cellattr: addCellAttr
                }]


function addCellAttr(rowId, val, rawObject, cm, rdata) {
 if (条件) {
               return "style='color:red'";
      }
}

  

posted @ 2021-02-06 09:41  峡谷少爷  阅读(1113)  评论(0编辑  收藏  举报