# ngx-responsive-datatable

> Responsive datatable. Easy implementation, beautiful and clean style, powerful search engine and pagination that can handle large data. It was created with Angular16, but it surely works on Angular 8+.

Latest version **0.0.7** (published 2023-05-29) · 0 weekly downloads

## Install

```sh
npm install ngx-responsive-datatable
pnpm add ngx-responsive-datatable
yarn add ngx-responsive-datatable
bun add ngx-responsive-datatable
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2023-05-29 |
| First published | 2023-05-29 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 131.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ivan Dario Velez |
| Maintainers | ivancho175 |
| Keywords | angular, responsive-datatable, ngx-responsive-datatable, paginator, pagination, angular8, angular9, angular10, angular11, angular12, angular13, angular14, angular15, angular16, ngx-datatable, datatable |

## Links

- npm: https://www.npmjs.com/package/ngx-responsive-datatable
- Repository: https://github.com/Ivancho175/ngx-responsive-datatable-app
- Homepage: https://github.com/Ivancho175/ngx-responsive-datatable-app#readme
- Issues: https://github.com/Ivancho175/ngx-responsive-datatable-app/issues
- npm.io page: https://npm.io/package/ngx-responsive-datatable

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2023-05-29
- 0.0.6 — 2023-05-29
- 0.0.5 — 2023-05-29
- 0.0.4 — 2023-05-29
- 0.0.3 — 2023-05-29

## README

# Angular Responsive Datatable (ngx-responsive-datatable)

Responsive datatable. Easy implementation, beautiful and clean style, powerful search engine and pagination that can handle large data. It was created with Angular16, but it surely works on Angular 8+.

### Install

`npm i ngx-responsive-datatable@latest --save`

### Import

**app.module.ts**

```typescript
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppComponent} from './app.component';
/** IMPORT **/
import { NgxResponsiveDatatableModule } from 'ngx-responsive-datatable'; 👈

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

### In your component

HTML

```html
<ngx-responsive-datatable [dataTable]="dataTable | async"></ngx-responsive-datatable>
```

TypeScript

```typescript
import { Component, OnInit } from "@angular/core";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"],
})
export class AppComponent implements OnInit {

    dataTable = new Subject<any>();

    // We create a fake array to send to our table
    private users: User[] = [
        {
            id: 1,
            name: 'Andrew Martins',
            age: 20,
            genre: 'male',
            email: 'andrew@mail.com',
        },
        {
            id: 2,
            name: 'Peter Potter',
            age: 21,
            genre: 'male',
            email: 'peter@mail.com',
        },
        {
            id: 3,
            name: 'Jack Stevens',
            age: 20,
            genre: 'male',
            email: 'jack@mail.com',
        },
        {
            id: 4,
            name: 'Martha Willis',
            age: 19,
            genre: 'female',
            email: 'martha@mail.com',
        },
        {
            id: 5,
            name: 'Alice Lance',
            age: 20,
            genre: 'female',
            email: 'alice@mail.com',
        },
        {
            id: 6,
            name: 'Rose Richards',
            age: 20,
            genre: 'female',
            email: 'rose@mail.com',
        },
    ]

     /*Set the data to send to the component*/
    setDataTable() {
        const data = {
            //Set the titles with the same name and the same order than the attributes of each element in the array
            titles: ['Id', 'Name', 'Age', 'Genre', 'Email'],
            rows: this.users;
        }

        // Finally set the variable dataTable with the new data
        this.dataTable.next(data);
    }
}

interface User = {
    id: number;
    name: string;
    age: number;
    genre: string;
    email: string;
}
```

### Tutorial

[![TUTORIAL ngx-responsive-datatable](https://i.ibb.co/F6BSp3T/image.png)](https://www.youtube.com/watch?v=RfDIhyvewfM "Tutorial NGX-RESPONSIVE-DATATABLE")

---
_Source: https://npm.io/package/ngx-responsive-datatable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
