
需要自定义修改formatter 属性 自定义为函数处理;
formatter: function(value,row,index){
var that = $.extend({},this);
var table = $(that.table).clone(true);
if(row.func_status=="-1"){
$(table).data("operate-edit",null);
that.table = table;
}
return Table.api.formatter.operate.call(that,value,row,index)
//console.log(value);
//console.log(row);
//console.log(index);
},
本文介绍如何在表格中自定义Formatter属性,通过函数处理实现动态显示操作按钮,根据行数据的状态改变按钮的功能。
2954

被折叠的 条评论
为什么被折叠?



