react pager component
var Pager = require('rc-pager');
React.renderComponent(
<Pager total={10} current={5}/>,
document.getElementById('p1')
);
npm install
npm start
http://localhost:8000/examples/
online example:
http://react-component.github.io/pager/build/examples/index.html
- total page
- current page
- previous page label, also can be a React Component
- next page label, also can be a React Component
- The callback when the page skip
http://localhost:8000/tests/runner.html?coverage
rc-pager is released under the MIT license.