0.1.1 • Published 8 years ago

heavenpg v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

heavenPG

jQuery Pagination with bootstrap style ##Initialize the plugin

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" 

<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="dist/heavenpg.min.js"></script>
    

Usage

var heaven= heavenPG({
    id : 'ul#pagnition',
    total: 10, // page total
    onclick:function(page,event){
                console.log(page); // page number clicked
            }
});
heaven.execute();

change total page

heaven.makeChange(16); // make change total page

other function

Methodtype
.id(data)string
.data(data)object

option

Methodtypedefaultrequire
idstringnonerequire
totalnumber1require
onclickfunctionnonerequire
visiblenumber5optional
pgLengthnumber3optional
nextstringnextoptional
prevstringprevoptional
currentnumber1optional