react-bootpag
v0.4.3
Published
A bootstrap pagination component for React.js
Downloads
15
Maintainers
Readme
react-bootpage
Component react for Boostrap pagination
Installation
$ npm install react-bootpag
#Example
var Bootpag = require('react-bootpag');
var settings = {
total: 20, // total page number
startPage: 2, // start page from left
page: 4, // Selected page
maxVisible: 10, // maximum number of pages visibles at a time
nextCallback: function(states, pageNumber){}, // callback executed after next button click
prevCallback: function(states, pageNumber){}, // callback executed after previous button click
nextText: '»', // text used for next button
prevText: '«', // text used for previous button
increment: 3, // page increment or decrement when clicking prev/next buttons
pageCallback: function(states, pageNumber){} // callback executed after page selection
};
<Bootpag settings={settings} />