1.0.1 • Published 8 years ago

nd-rc-pagination v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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}/>
    )
  }
}
1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago