Pager component for react.
Build with webpack and CSS Modules
npm i rc-page
<Pager curpage={2} perpage={20} total={300} onChange={this.onShow.bind(this)} />
name | type | default | description |
---|---|---|---|
*curpage | number | Page to show | |
*perpage | number | Item count perpage | |
*total | number | Total number of item | |
limit | number | Infinity | Limit page link number |
*onChange | func | Page change handler |
MIT