0.1.7 • Published 6 years ago

react-rayr-page v0.1.7

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Description

the pagination plugin for react.

    1.support jumping to a page where you want to (when the number of pages is more than 5)

    2.can change the counts that each page show

Install

npm install react-rayr-page --save

Params

paramtypedescriptdefault
countNumberthe sum of data (required)null
currentPageNumbercurrent page1
perPageNumberthe counts that each page shows10
onChangeFunctioncallback, the param is the page which you have clicked

Use Demo

import {RayrPage} from 'react-rayr-page';

<RayrPage count={this.state.count}
   currentPage={this.state.currentPage}
   perPage={this.state.perPage}
   onChange={(page) => {
       this.setState({currentPage:page});
   }}
/>

   tips:don`t forget to import the css file

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago