我正尝试在表格上添加一些下拉过滤器和分页。我正在使用tableSorter插件,即表排序,表排序过滤器或过滤器小工具来过滤和表排序分页。
当我在filter widget example page中使用filter小部件时,它只过滤分页数据的当前页,并且分页不会更新。
当我从这个jquery-tablesorter-filter location中使用tablesorter-filter时,就像在同一链接上的示例中所解释的那样,分页工作得很好,但是我不能使用dropdowns来选择过滤选项。
有没有人知道解决办法?(我现在需要使用这些表排序插件,所以不幸的是,我不能选择尝试其他插件。))
发布于 2012-09-28 07:01:04
Tablesorter 2.4版现已上线。查看一起工作的寻呼机插件和过滤器小部件的this demo。只需确保分页程序插件选项removeRows设置为false:
$("table")
.tablesorter()
.tablesorterPager({
// target the pager markup
container: $(".pager"),
// remove rows from the table to speed up the sort of large tables.
// setting this to false, only hides the non-visible rows;
// needed if you plan to add/remove rows with the pager enabled.
removeRows: false,
});https://stackoverflow.com/questions/12078891
复制相似问题