| Current Path : /home/happyrenas/old/happy-and-pay.fr/administration/assets/global/plugins/jquery-bootpag/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/happyrenas/old/happy-and-pay.fr/administration/assets/global/plugins/jquery-bootpag/README.md |
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
<p id="content">Dynamic page content</p>
<p id="pagination-here"></p>
```
```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});
});
```
#License
Plugin available under MIT license (see LICENSE.txt)