SimplePager - an easy jquery paging plugin
Following the popularity of SimplePager - easy paging plugin , we have updated the plugin to overcome two of the major issues with the original incarnation. SimplePager no longer breaks chaining and can now be used more than once per page.
We also replaced the old holder option (used for specifying a container for the paging) with a pagerLocation option that allows for setting the pager navigation to appear before after or before & after the paged item.
The premise behind SimplePager is to allow for creating pagination with as little effort or configuration as possible. This pager plugin can page divs, paragraphs, list items or almost any other content.
Sample usage
The very simplest usage is shown below.
$(function() {
$("ul.paging").quickPager();
});
Plugin options
Option - (default)
pageSize - (10)
The amount of items to show per page
currentPage - (1)
The page to start on
pagerLocation - (after)
Where to put the pager nav? accepts before , after or both
Known Issues
Because of the removal of the "holder" option, this plugin no longer supports paging table rows. This seemed to be an edge case anyhow, but if enough people let us know that they'd like this back we'll get it into a new version at some point.
Demo and Download
A demo is available here , and you can download a zip of the files from here .
Feedback
Please post any questions, comments or other feedback in the comments section below.
SimplePager插件已更新,解决了原有版本存在的主要问题,包括支持元素链式调用及页面重复使用。此外,新增了设置分页导航位置的功能,允许在分页内容前后显示导航。该插件旨在以最少的配置实现页面分页。
1857

被折叠的 条评论
为什么被折叠?



