powerdns-admin/app/static/global/plugins/jquery-bootpag
2015-12-13 16:34:12 +07:00
..
jquery.bootpag.js Initial commit 2015-12-13 16:34:12 +07:00
jquery.bootpag.min.js Initial commit 2015-12-13 16:34:12 +07:00
LICENSE.txt Initial commit 2015-12-13 16:34:12 +07:00
README.md Initial commit 2015-12-13 16:34:12 +07:00

bootpag - dynamic pagination

This jQuery plugin helps you create dynamic pagination with Bootstrap or in any other html pages.

#Example

Snippet that dynamic loads number of pages. More examples can be found on project homepage

<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.txt)