@ciag/paginator
v0.0.2
Published
Pagination helper
Downloads
2
Maintainers
Keywords
Readme
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