npm.io
1.0.1 • Published 6 years ago

krc-pagination

Licence
MIT
Version
1.0.1
Deps
0
Size
11 kB
Vulns
0
Weekly
0

krc-pagination

ReactJS controls: Pagination by Kraken team!

NPM version npm download

install

krc-pagination

HOW IT WORKS

install package

npm install --save krc-pagination

import styles

import 'krc-pagination/styles.css';
usage
   import { Pagination } from "krc-pagination";
   import 'krc-pagination/styles.css';

   onPageChanged = e => {
      console.log(e.currentPage);
   };

   <Pagination
              totalRecords={totalRecords}
              pageLimit={1}
              pageNeighbours={1}
              onPageChanged={onPageChanged}
            />

API references

Properties

Name Type Default Description
totalRecords number 0 List view title
pageLimit number 1 Limit items count per page
pageNeighbours number 1 View neighbour item
onPageChanged Function null On page select change handler

License

krc-pagination is released under the MIT license.

Keywords