Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/botmonster/jquery-bootpag
BootPag - boostrap dynamic pagination jQuery plugin
https://github.com/botmonster/jquery-bootpag
Last synced: 3 months ago
JSON representation
BootPag - boostrap dynamic pagination jQuery plugin
- Host: GitHub
- URL: https://github.com/botmonster/jquery-bootpag
- Owner: botmonster
- License: mit
- Created: 2012-10-27T15:29:58.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T02:54:17.000Z (over 1 year ago)
- Last Synced: 2024-07-19T19:12:05.249Z (4 months ago)
- Language: HTML
- Size: 168 KB
- Stars: 527
- Watchers: 51
- Forks: 261
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
bootpag - dynamic pagination
============================This jQuery plugin helps you create dynamic pagination with [Bootstrap](http://getbootstrap.com/) or in any other html pages.
# Example
Snippet that dynamic loads number of pages.
More examples can be found on [project homepage](http://botmonster.com/jquery-bootpag/)```html
Dynamic page content
``````javascript
$('#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});
});```
# LicensePlugin available under MIT license (See LICENSE file)
Copyright (c) 2013-2015 botmonster.com