bootstrap 列函数

1,单元格样式

cellStyle : function cellStyle(value, row, index) {
return {
css : {
"white-space" : "nowrap"
}
};
},
2、 行样式:
rowStyle:function rowStyle(row, index) {
return {
   css: {"white-space": "nowrap"}
 };
   },

3,下载列

{
title: '操作',
field: 'downloadFile',
align: 'center',
valign: 'middle',
formatter: function(value,row,index){
var name=encodeURI(encodeURI(row.downloadFile));
var projectNo=encodeURI(encodeURI(row.projectNo));
var fileName=encodeURI(encodeURI(row.fileName));
var e = "<a href='"+path+"TestReportAction.do?method=downloadFile&filename="+name+"&projectNo="+projectNo+"&fileName="+fileName+"' class='btn btn-primary' >下载</a> ";
return e;

posted @ 2018-10-25 16:06  我的女人是捡的  阅读(486)  评论(0编辑  收藏  举报