vb-paginator
v1.0.2
Published
[![NPM](https://nodei.co/npm/vb-paginator.png?downloads=true)](https://nodei.co/npm/vb-paginator/) [![downloads](https://badgen.net/npm/dt/vb-paginator)](https://badgen.net/npm/dt/vb-paginator)
Downloads
3
Readme
VB-Paginator
An Angular component to render a pagination.
By installing this component and writing only a little bit of CSS you can obtain this:
or
Installation
Install vb-paginator
with npm:
npm install vb-paginator --save
In your App Module add:
import { VjPaginatorModule } from 'vb-paginator';
Demo
Props
| Name | Type | Description |
| ------------------------ | ---------- | -------------------------------------------------------------------------------------------- |
| items
| Number
| Required. Array of data to be paginated |
| maxPages
| Number
| Required. The range of pages displayed. |
| pageSize
| Number
| Required. The number of items to display per page. |
| textColor
| String
| Color of the text. |
| bgColor
| String
| Background color for active page. |
| position
| Node
| Position on page ('left', 'center', 'right'). |
| changePage
| Function
| The method to call when a page is clicked. Exposes the current page object as an argument. |