0.1.7 • Published 2 years ago

workroom-pagination v0.1.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago