1.1.6 • Published 7 years ago

pagination-react v1.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

pagination for react

!(preview)preview.gif

install

npm install --save-dev pagination-react style-loader css-loader

webpack.config.js

// add loader
{
	test: /\.css$/,
	loader: "style-loader!css-loader"
}

import

import Pagination from 'pagination-react'

use

<Pagination 
	count={16}
	groupCount={5}
	selectedCount={1}
	setUpdate={handle => this.updatePagination = handle}
	callback={index => console.log(index)}/>

count: size

groupCount: every group show how many items

selectedCount: current index, is optional

setUpdate: update index, is optional

callback: an arg with index

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.9.8

7 years ago