简化了 Bootstrap 分页功能:jQuery Pagination plugin

jopen 10年前

jQuery Pagination Plugin for Bootstrap 这个 jQuery 插件简化了 Bootstrap 分页功能的使用。它使用适当的类:.pagination, .active.disabled。

选项和事件

    选项​​的说明和缺省值:
  • totalPages the number of pages (required, checked)
  • startPage the current page that show on start(default: 1)
  • visiblePages maximum visible pages (default: 5)
  • href template for pagination links (default javascript:void(0);)
  • hrefVariable variable name in href template for page number (default {{number}})
  • first text label (default: 'First')
  • prev text label (default: 'Previous')
  • next text label (default: 'Next')
  • last text label (default: 'Last')
  • paginationClass the root style for pagination component (default: 'pagination'). You can use this option to apply your own style
    可用的事件:
  • onPageClick callback function
      Function parameters
    • event object
    • page the number of page

简化了 Bootstrap 分页功能:twbs-pagination


项目主页:http://www.open-open.com/lib/view/home/1390813129507