1.0.0 • Published 2 years ago

pagiinator v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Pagiinator

NPM downloads

A highly customizable pagination component library.

By installing this component and writing only a little bit of CSS you can obtain this:

or

Installation

Install pagiinator with npm:

npm install pagiinator --save

In your App Module add:

import { VjPaginatorModule } from 'pagiinator';

Demo

Props

NameTypeDescription
itemsNumberRequired. Array of data to be paginated
maxPagesNumberRequired. The range of pages displayed.
pageSizeNumberRequired. The number of items to display per page.
textColorStringColor of the text.
bgColorStringBackground color for active page.
positionNodePosition on page ('left', 'center', 'right').
changePageFunctionThe method to call when a page is clicked. Exposes the current page object as an argument.