dev-master
9999999-devBootstrap dynamic pagination jQuery plugin
MIT
The Requires
by botmonster
Wallogit.com
2017 © Pedro Peláez
Bootstrap dynamic pagination jQuery plugin
This jQuery plugin helps you create dynamic pagination with Bootstrap or in any other html pages., (*1)
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});
});
Plugin available under MIT license (See LICENSE file), (*3)
Copyright (c) 2013-2015 botmonster.com, (*4)
Bootstrap dynamic pagination jQuery plugin
MIT