1.1.2 • Published 7 years ago

ng2-flex-table v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

ng2-flex-table

Angular2 Table Component with NO DEPENDENCYS

ng2-flex-table is a table grid component for Angular2/4.

Demo

How it looks

Try it out: http://ng2-flex-table.nicolaszick.com

Data

This table is made for non relational databases where response object not necessary have the same columns:

{
  'startDate': '2015/08/19',
  'salary': 208.178
}, {
  'lastname': 'Pearl Crosby',
  'detailposition': 'In PC'
}

Results in the following headers:

startDatesalarylastnamedetailposition
2015/08/19208.178
Pearl CrosbyIn PC

ng2-flex-table is built to handle this type of objects and fits the table to your needs. All available keys will be used as a column and if some object doesnt have it, the cell with be left empty but can be edited by inline editing.

(outEvent) will give you the changed Object if some attribute has changed or tabled got initiated.

Installation

Install ng2-flex-table via npm

npm install ng2-flex-table --save

Integration

// app.module.ts
import { DataTableModule } from 'ng2-flex-table';

@NgModule({
  ...
  imports: [ DataTableModule ]
  ...
})
export class AppModule { }

// app.component.html
<ng2-flex-table [tabledata]="data" (outEvent)="tableEvent($event)"></ng2-flex-table>

Adjust the table height to your needs like this:

.ng2-flex-table
    &__body
      height: 1000px !important

Run Included Demo

git clone https://github.com/nzick/ng2-flex-table.git --depth 1
cd ng2-flex-table
npm install
npm start

AoT Library Build

npm run build:lib

Licence

This project is licensed under the MIT license. See the LICENSE file for more info.

1.1.2

7 years ago

1.1.1

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago