Skip to content

xu3u4/simple-react-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

15308b9 · Dec 20, 2019

History

49 Commits
Dec 20, 2019
Feb 25, 2018
Feb 25, 2018
Feb 25, 2018
Aug 12, 2017
Nov 14, 2017
Aug 12, 2017
Jul 29, 2017
Feb 24, 2018
Nov 15, 2017
Feb 25, 2018
Feb 25, 2018
Feb 25, 2018
Feb 25, 2018

Repository files navigation

react-pagination

It is a simple react pagination which also supports RWD.

Environment setup

  1. Clone this repository
git clone https://github.com/xu3u4/react-pagination.git
  1. Install packages
npm install #or yarn install
  1. Start the app
npm run dev

Params

Name Type Default Description
itemsPerPage Number 1 Number of item to display on every page.
totalItems Number *Required The overall items count.
reloadPage Boolean true If true, reload the whole page. If false, rerender pagination.
onPageChange Function *Optional Callback function after page change, will return the new page number. For example, you can call an ajax to get more data.
paginateClass String *Optional Customized class for the paginate.
arrowClass String *Optional Customized class for the navigation arrows.

Releases

No releases published

Packages

No packages published