krc-pagination
v1.0.1
Published
Kraken react controls - pagation
Downloads
11
Maintainers
Readme
krc-pagination
ReactJS controls: Pagination by Kraken team!
install
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.