2017 © Pedro Peláez
 

library jquery-bootpag

Bootstrap pagination

image

intelogie/jquery-bootpag

Bootstrap pagination

  • Wednesday, October 7, 2015
  • by bgauthier
  • Repository
  • 1 Watchers
  • 0 Stars
  • 78 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 240 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

bootpag - dynamic pagination

This jQuery plugin helps you create dynamic pagination with Bootstrap or in any other html pages., (*1)

Example

Snippet that dynamic loads number of pages. More examples can be found on project homepage, (*2)

<p id="content">Dynamic page content</p>
<p id="pagination-here"></p>
$('#pagination-here').bootpag({
    total: 7,          // total pages
    page: 1,            // default page
    maxVisible: 5,     // visible pagination
    leaps: true         // next/prev leaps through maxVisible
}).on("page", function(event, num){
    $("#content").html("Page " + num); // or some ajax content loading...
    // ... after content load -> change total to 10
    $(this).bootpag({total: 10, maxVisible: 10});
});

License

Plugin available under MIT license (See LICENSE file), (*3)

Copyright (c) 2013-2015 botmonster.com, (*4)

The Versions

07/10 2015

dev-master

9999999-dev

Bootstrap pagination

  Sources   Download