intelogie/jquery-bootpag

There is no license information available for the latest version (dev-master) of this package.

Bootstrap pagination

Installs: 156

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 263

Language:HTML

dev-master 2015-10-07 03:18 UTC

This package is auto-updated.

Last update: 2024-11-29 05:14:53 UTC


README

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 file)

Copyright (c) 2013-2015 botmonster.com