0.1.7 • Published 6 months ago

workroom-pagination v0.1.7

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

workroom-pagination

The workroom-pagination library is provided to simplify the bootstrap process.

Installation

Using npm:

$ npm i -g workroom-pagination
$ npm i --save workroom-pagination

Usage

import React from 'react';
import WorkroomPagination from "workroom-pagination";

export default function MyComponent() {
  return (
    <>
        <WorkroomPagination currentPage={currentPage} totalPages={Math.ceil(totalCount / PAGE_SIZE)} onPageChange={handlePageChange} />
    </>
  );
};

export default MyComponent;

Props

PropTypeDescription
currentPageIntThe current page number
totalPagesIntTotal number of pages to be displayed.
onPageChangefunctionThe call back function which should be triggered when the user changes the page from pagination.
0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago