rc-pager
react pager component
install
Usage
var Pager = ;React;
Development
npm install
npm start
Example
http://localhost:8000/examples/
online example:
http://react-component.github.io/pager/build/examples/index.html
API
Number
total - total page
Number
current - current page
String|Element
previousLabel - previous page label, also can be a React Component
String|Element
nextLabel - next page label, also can be a React Component
Function
onSkipTo(page) - The callback when the page skip
Test Case
http://localhost:8000/tests/runner.html?coverage
Coverage
License
rc-pager is released under the MIT license.