nd-rc-pagination

1.0.1 • Public • Published

react-pagination

Build Status Coverage Status npm bitHound Dev Dependencies bitHound Dev Dependencies bitHound Code bitHound Dev Dependencies bitHound Overall Score

React UI Component - Pagination

Install

$ npm install nd-rc-pagination --save

Use

import React from 'react'
import Pagination from 'nd-rc-pagination'
import 'nd-rc-pagination/assets/index.scss'
export default class extends React.Component {
 
  handlePageChange (page) {
    console.log(page)
  }
  render () {
    const locale = {
      next_5: 'Next 5 pages',
      prev_5: 'Previous 5 pages',
      last_page: 'Last Page',
      next_page: 'Next page',
      prev_page: 'Previous page',
      jump: 'Jump'
    }
    return (
      <Pagination total={500} size={10} onPageChange={this.handlePageChange} locale={locale}/>
    )
  }
}

Package Sidebar

Install

npm i nd-rc-pagination

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kagawa