1.0.1 • Published 4 years ago

krc-pagination v1.0.1

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

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

NameTypeDefaultDescription
totalRecordsnumber0List view title
pageLimitnumber1Limit items count per page
pageNeighboursnumber1View neighbour item
onPageChangedFunctionnullOn page select change handler

License

krc-pagination is released under the MIT license.