开发者

How do i set the initial size of the table when using paging?

Im开发者_如何学Python using the paging plugin to the tablesorter and im wondering how do i pass the initial size of the table?

If my table is 8 rows long, and i want it to be only show 2 when the page is first visited, how do i do that?


After digging thru the .js file i found that you could set size when you construct it :D default is 10.

os

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

would do the trick :D

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜