0.0.2 • Published 7 years ago
@ciag/paginator v0.0.2
OpenCIAg | Paginator
Paginator is a component that helps you to render pagination.
Install
npm install @ciag/paginator --saveUsage 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
0.0.2
7 years ago