Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 773 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 773 Bytes

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 ❤ by @Tiecoo in Pompeia, SP, Brazil