-
Notifications
You must be signed in to change notification settings - Fork 1
Tables
einarhuseby edited this page Jun 27, 2019
·
5 revisions
App wide config
import { DefaultTableConfig } from 'app/interfaces/ngx-easy-table.interface';
Vanilla from package
import { DefaultConfig } from 'ngx-easy-table';
import { Columns, Config, STYLE } from 'ngx-easy-table';
import { DefaultTableConfig } from 'app/interfaces/ngx-easy-table.interface';
tableConf: Config;
public columns: Columns[] = [
{ key: 'value', title: 'Value Title' },
];
ngOnInit() {
this.tableConf = DefaultConfig;
this.tableConf.tableLayout.style = STYLE.TINY;
this.tableConf.headerEnabled = false;
}
<ngx-table [id]="the_id" [configuration]="tableConf" [data]="functions" [columns]="columns">
<ng-template let-row let-index="index">
<td>
...
</td>
</ng-template>
</ngx-table>
<ng-template let-row let-index="index">