@jakecyr/pagination-table
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Angular Pagination Component Library

This project contains the source code for an Angular library with a pagination table component. The Angular component handles all pagination logic for you.

How to use

Install the package from the public npm package repository:

npm install @jakecyr/pagination-table --save

Import the module into your Angular application module. Example:

@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        BrowserModule,
        PaginationTableModule,
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }

Replace your current table element with the table pagination component:

<lib-pagination-table
    [data]="[{title: 'Item 1', id: 1}, {title: 'Item 2', id: 2}]"
    [headers]="[{key: 'title', title: 'Title'}, {key: 'id', title: 'ID'}]"
    [perPage]="1"
    tableClasses="table-style"
    (clickRow)="handleClickedRow($event)">
</lib-pagination-table>

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @jakecyr/pagination-table

    Weekly Downloads

    1

    Version

    0.0.4

    License

    none

    Unpacked Size

    80.9 kB

    Total Files

    32

    Last publish

    Collaborators

    • jakecyr