4

如何在 Angular 2中覆盖/设置ngx-datatables的默认参数?

4

1 回答 1

1

您能定义默认参数的含义吗?我拥有的 ngx 数据表示例如下:

<ngx-datatable #table
    class="material"
    [rows]="rows"
    [columns]="cols"
    [columnMode]="'force'"
    [headerHeight]="50"
    [footerHeight]="50"
    [rowHeight]="'auto'"
    [externalPaging]="true"
    [externalSorting]="true"
    [count]="filter.totalElements"
    [offset]="filter.pageNumber"
    [limit]="filter.size"
    [reorderable]="false"
    [messages]="{emptyMessage: 'Geen data om weer te geven', totalMessage: 'totaal'}"
    (page)='setPage($event)'
    (sort)="onSort($event)"
    [selected]="selected"
    [selectionType]="'checkbox'"
    (select)='onSelect($event)'
    [rowIdentity]="getId">
</ngx-datatable>

但我不知道这是否是你要找的......?

于 2017-09-25T12:10:08.947 回答