jQuery tablesorter widget-filter-formatter-select2 with a pr



成功地,我实现了表分类器过滤器小部件,可以同时选择多个选项,并且部分匹配没有任何问题(这个插件很棒!(:

https://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-select2.html

然而,我的桌子更复杂。

语言
A ENG、DEU、FRZ、SPA
B 发动机、SLO、RUS
C DEU,FRZ

重新查看文档后,我发现了我需要的东西:

// option added in v2.16.0
filter_selectSource : {
// Alphanumeric match (prefix only)
// added as select2 options (you could also use select2 data option)
2 : function(table, column) {
return ['ENG', 'DEU', 'FRZ', 'SLO', 'RUS'];
}
}

这很好用,但不包括子行如何同时筛选子行

最新更新