0.1.4 • Published 6 years ago

dealtrack-react-js-pagination v0.1.4

Weekly downloads
15
License
-
Repository
-
Last release
6 years ago

Dealtrack react pagination

react js pagination that modified for following dealtrack pagination design standard

Installation

npm install dealtrack-react-js-pagination

Usage

import React from 'react;
import ReactDOM from 'react-dom';
import DealtrackPagination from 'dealtrack-react-js-pagination';

ReactDOM.render(<DealtrackPagination />, document.getElementById('root'))

Params

This package is modification from react-js-pagination, so for params not have much difference.

NameTypeDefaultDescription
activePageNumber1Required. Active page
itemsCountPerPageNumber0Count of items per page
totalItemsCountNumber0Required. Total count of items which you are going to display
pageRangeDisplayedNumber5Range of pages in paginator, exclude navigation blocks (prev, next, first, last pages)
firstPageTextString / ReactElement'First'Text of first page navigation button
lastPageTextString / ReactElement'Last'Text of last page navigation button
linkClassFirstString'text-dt-black-900'Class of the first <a> tag
linkClassLastString'text-dt-black-900'Class of the last <a> tag
activeLinkClassString'react-js-pagination-active'Class name of active <a> tag
itemClassFirstString'react-js-pagination-first-last'Class of the first <li> tag
itemClassLastString'react-js-pagination-first-last'Class of the last <li> tag

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT