@ciag/paginator
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @ciag/paginator

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

87.5 kB

Total Files

26

Last publish

Collaborators

  • borba.victor
  • ciag.dev
  • raacavalieri
  • leonardortlima
  • carlosbenedetti
  • tiecoo
  • ettoreleandrotognoli
  • rafael.lima