tablesorter传呼机初始分页 [英] tablesorter pager initial pagination
问题描述
对于某些人来说,这听起来像是一个非常愚蠢的问题,但是我向您保证,我一直在通过互联网进行检查,因此对此我没有任何运气.我的问题是:是否可以在tablesorter传呼机插件中设置初始分页号?默认情况下,它采用10选项,但是我尝试将5作为选定选项,并且无论如何它都会加载10.如果我更改它并返回到5,它将按所述5加载,但不会在开始时加载.
This might sound like a very stupid question to some of you, but I assure you I've been checking through the internet and I haven't had any luck about this. My question is: is it possible to set an initial pagination number in the tablesorter pager plugin? By default it takes the 10 option, but I've tried to put a 5 as the selected option and it loads 10 anyway. If I change it and come back to the 5 it will load as said, 5, but not at the beggining.
加载表排序程序时是否有任何选择?我给表排序程序的代码是这样的:
Is there any option when loading the tablesorter? My code for the tablesorter is this:
$("#TST").tablesorter({
headers: { 0: { sorter: false }, 4: { sorter: false }, 5: { sorter: false }, 6: { sorter: false} },
sortList: [[1, 0], [2, 0], [3, 0]],
widgets: ['zebra']
})
.tablesorterPager({
container: $("#TSTPager"),
positionFixed: false //,
//pagesize: 5
});
我在tablesorterPager中编写的pagesize属性是一个测试,但是并不能满足我的要求.
the pagesize attribute I wrote in the tablesorterPager was a test, but it doesn't do what I want it to.
推荐答案
在.tablesorterPager
调用中指定变量大小:
例如:-
In the .tablesorterPager
call specify a variable size:
example :-
.tablesorterPager({container: $("#pager"), size: 20});
这篇关于tablesorter传呼机初始分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!