0.0.17 • Published 1 year ago

@agentsmith.bgd/pagination-lib v0.0.17

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

PaginationLib

Pagination component

Attributes

AttributeTypeDescription
first=falsebooleanFlag if we are on first page
last=falsebooleanFlag if we are on last page
align=''"" or "justify-content-center" or "justify-content-end"Aligment of component left(default), center or right
totalPages=0numberTotal number of pages
page=0numberCurrent page (active page)
enableLog=falsebooleanEnable console logger (developer logs)

Events

EventDescription
pageChange(page):EventEmitter<number>Dispatch when we click on pagination buttons and emits target page

Installation

Install pagination-lib from npm

npm i @agentsmith.bgd/pagination-lib

Add package to NgModule imports:

import { PaginationLibModule } from '@agentsmith.bgd/pagination-lib';

@NgModule({
	...
	imports: [PaginationLibModule, ...],
	...
})

Add component to your page

<as-pagination
(pageChange)="$event"
[first]="true"
[last]="false"
[page]="0"
[totalPages]="20"
align="justify-content-center"
></as-pagination>

Compatibility

There is only one dependency: Angular > 12.x.x

0.0.17

1 year ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago