vb-paginator
v1.0.2
Published
[](https://nodei.co/npm/vb-paginator/) [](https://badgen.net/npm/dt/vb-paginator)
Downloads
4
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 --saveIn 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. |

