An Angular component to render a pagination.
By installing this component and writing only a little bit of CSS you can obtain this:
or
Install vb-paginator
with npm:
npm install vb-paginator --save
In your App Module add:
import { VjPaginatorModule } from 'vb-paginator';
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. |