tablesorter pager initial pagination

跟風遠走 提交于 2019-12-04 02:44:19
Peter

In the .tablesorterPager call specify a variable size: example :-

.tablesorterPager({container: $("#pager"), size: 20}); 
user1647826

In jquery.tablesorter.pager.js file it'll be 10 size in your js file so change it to 5 like below in defaults variable block.

this.defaults = {
  size: 5
}

I had the same issue with the $.tablesorter.storage at first. Try the savesPages at false

.tablesorterPager({
   container: $(".ts-pager"),

   size: 5,
   savePages : false,
})

Actually, I dig in the javascript source code and find that the pager settings is stored in the tablesorter storage widget.

$('document').ready(function(){
   $(".pagesize").val(50);
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!