【发布时间】:2016-09-28 13:33:01
【问题描述】:
我找到了一个过滤器配置来过滤空列。 问题是我只知道如何将其应用于一列(在示例列号 8 中)。我想同时将其应用于其他列(例如第 8、12 和 17 列)。 谢谢!
filter_functions: {
8: {
'{empty}' : function (e, n, f, i, $r, c) {
return $.trim(e) === '';
}
}
},
filter_selectSource: {
8: function (table, column, onlyAvail) {
// get an array of all table cell contents for a table column
var array = $.tablesorter.filter.getOptions(table, column, onlyAvail);
// manipulate the array as desired, then return it
array.push('{empty}');
return array;
}
},
【问题讨论】:
标签: filter multiple-columns tablesorter