0.0.8 • Published 6 years ago

ngx-nested-data-table v0.0.8

Weekly downloads
83
License
ISC
Repository
github
Last release
6 years ago

Master Detail table

Master detail table built on top of angular material. It allows to nested as much as table you want. To Have a nested table your object need to contain a an array with the name details (see the example if you not sure).

Features:

  • master detail table
  • search
  • paginator (visible if you've more then 25 items)
  • order

alt text

dependencies

This packages require:

"@angular/common": "^6.0.0-rc.0 || ^6.0.0",
"@angular/core": "^6.0.0-rc.0 || ^6.0.0",
"@angular/material": "^6.1.0",
"@angular/cdk": "^6.1.0"

Usage:

npm install --save npm install @angular/material @angular/cdk ngx-nested-data-table

In your module:

  imports: [
    ...
    BrowserAnimationsModule,
    NgxDataTableModule
  ],

in your template:

<ngx-data-table [data]="data"></ngx-data-table>

If you like the material style in your angular.json add in the style section:

"styles": [
{
  "input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
},
...
]

Where data is something like that:

data: any[] = [
  {
    name: 'daniele',
    surname: 'zurico',
    sex: 'male'
  },
  {
    name: 'Emma',
    surname: 'Smith',
    sex: 'female',
    details: [
      {
        phone: '+44234323456',
        address: 'Oxford Street',
        city: 'London',
        details: [
          {
            country: 'UK'
          }
        ]
      },
      {
        a: 'Charlotte',
        b: 'Taylor'
      },
    ]
  }
];
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago