开发者

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

开发者 https://www.devze.com 2023-01-30 01:34 出处:网络
Im开发者_如何学Python using the paging plugin to the tablesorter and im wondering how do i pass the initial size of the table?

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

精彩评论

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