1.0.7 • Published 7 years ago

pagination-material-ui v1.0.7

Weekly downloads
52
License
MIT license
Repository
github
Last release
7 years ago

Pagination Component for material-ui

Usage

npm install --save pagination-material-ui

or

yarn add pagination-material-ui
import React, { Component } from 'react';
import { render } from 'react-dom';
import Pagination from 'pagination-material-ui'

class PaginationExample extends Component {
  render() {
    return (
      <Pagination total={100} perPage={10} onChange={this.onChange.bind(this)}/>
    )
  }
  
  onChange(currentPage, perPage) {
    // Do some pagination thing here
  }
}

render(<PaginationExample/>, document.getElementById('app'));

Available Props

total - Total rows count. Type: number - required perPage - Show rows count on per page. Type: number - required onChange - Callback for page change Type: function required

  @currentPage
  @perPage	

texts - Localization text Type: object

{
  page: 'Page: ',
  perPage: 'Per Page: ',
  showing: 'Showing {total} of {from} to {to}'
}
1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago