ngpq-table
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Angular Table for large and small projects

ngpq-table Component

Installation

npm install ngpq-table

Minimal Usage Example

app.module.ts

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

import { NgPqTableModule } from 'ngpq-table';

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

app.component.ts

import { Component } from '@angular/core';
import { Settings } from 'ngpq-table';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent {
  settings: { [key: string]: Settings; } = {
    id: {
      title: 'ID'
    },
    name: {
      title: 'Name'
    },
    Email: {
      title: 'Email'
    }
  };
  
  data = [
    {
      "id": 1,
      "name": "id labore ex et quam laborum",
      "email": "Eliseo@gardner.biz"
    },
    {
      "id": 2,
      "name": "quo vero reiciendis velit similique earum",
      "email": "Jayne_Kuhic@sydney.com"
    },
    ...
  ];
}

app.component.html

<ngpq-table 
   [data]="data" 
   [settings]="settings">
</ngpq-table>

alt text

Features

  • Flexible possibility of using sync. or async. data
  • Filtering (Smart or Basic)
  • Sorting (asc, desc, original position)
  • Pagination
  • Resizing
  • Actions (Inline Add/Edit at your service)
  • Multiple (Select) Actions

All Features and Example can be viewed here Here

Package Sidebar

Install

npm i ngpq-table

Weekly Downloads

2

Version

1.3.1

License

MIT

Unpacked Size

841 kB

Total Files

84

Last publish

Collaborators

  • arampaqo