AdvanceMaterialDatatable
This is a advance version of Angular Meterial data table
How to use
Run npm install advance-material-datatable
to include in your application.
Add following line in your component html to use data-table
<advance-material-datatable [dataSource]="data"></advance-material-datatable>
Settings
Package looks for dataTableColumns.json
file under assets folder
Sample content of this file is shown below
[ { "settingName": "table1", "displayName": "Data Table 1", "columns": [ { "name": "first", "displayName": "First" }, { "name": "second", "displayName": "Second" } ] } ]
to apply this columns settings use [settingName]
property to bind it automatically as shown below
<advance-material-datatable [dataSource]="data"
[settingName]="'table1'"></advance-material-datatable>