Newtonian Physics Mockumentary

    krc-pagination

    1.0.1 • Public • Published

    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.

    Install

    npm i krc-pagination

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    11.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • luonguit