tablesorter pager initial pagination
Posted
by vikitor
on Stack Overflow
See other posts from Stack Overflow
or by vikitor
Published on 2010-06-16T08:54:42Z
Indexed on
2010/06/17
15:43 UTC
Read the original article
Hit count: 646
jQuery
|tablesorter
Hi, 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
});
the pagesize attribute I wrote in the tablesorterPager was a test, but it doesn't do what I want it to.
© Stack Overflow or respective owner