0.0.2 • Published 6 years ago

@ciag/paginator v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

OpenCIAg | Paginator

Paginator is a component that helps you to render pagination.

Install

npm install @ciag/paginator --save

Usage example with Angular

Add the module on your Module

import { PaginatorModule } from '@ciag/paginator';

@NgModule({
    imports: [
        PaginatorModule,
    ]
})
export class AppModule{}

Add the tag paginator on your HTML

<paginator [initialPage]="<pageToStart | Number>" (selectedKey)="reloadArticles($event)" [totalPagination]='<totalPages | Number>'></paginator>

and on your component TS

reloadArticles(event){
    console.log(event) // It will return the page that got selected
}

Made with ❤ in Pompéia, SP, Brazil