react-next-paging
ReactJS component for easy pagination.
Installation
This module is distributed via npm which is bundled
with node and should be installed as one of your project's
dependencies
:
or if you use yarn
:
The UMD build is also available on unpkg:
You can find the library on window.ReactNextPaging
.
This package also depends on
react
andprop-types
. Please make sure you
have those installed as well.
Usage
and in the main app file
Props
itemsperpage
number
| defaults to10
Pass a number which represents the number of items per page.
nocolumns
number
Pass a number which represents the number of columns for the <td/>
colSpan
property.
pagesspan
number
| defaults to10
Pass a number which represents the pages span.
items
any
| defaults to[]
Pass an array of table row items that should be rendered.