@ciag/paginator

Pagination helper

Usage no npm install needed!

<script type="module">
  import ciagPaginator from 'https://cdn.skypack.dev/@ciag/paginator';
</script>

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