2.9.0 • Published 3 years ago

absolute-table-pagination v2.9.0

Weekly downloads
72
License
-
Repository
-
Last release
3 years ago

absolute-table-pagination

This library was generated with Angular CLI version 10.1.6.

Author: Sathyaraj Kandasamy

##Code Implementation You can install this package locally with npm.

npm install absolute-table-pagination --save

##To import in the module

import { AbsoluteTablePaginationModule } from 'absolute-table-pagination';

@NgModule({
  imports: [
    AbsoluteTablePaginationModule
  ]
})

##Implement in HTML file

<absolute-table-pagination  [data]="JsonData" [rowCount]="RowCount" (slicedData)="setTableData($event)"></absolute-table-pagination>

##Implement in TS file

import { ChangeDetectorRef } from '@angular/core';

export class AppComponent {
    JsonData = [] //entire array of json data
    RowCount = 10; //no of rows to be displayed in table
    TableData : any; //to be binded with table for rows

    constructor(private cref: ChangeDetectorRef) {}

    setTableData(data: any) {
        this.TableData = data; //sliced table data based on the page number selected
        this.cref.detectChanges();
    }
}

Output

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

2.7.0

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.5.0

3 years ago

2.6.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.0.3

4 years ago

0.1.1

4 years ago

0.0.2

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.1.3

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.1

4 years ago