如何在Angular 2中覆盖/设置ngx-datatables的默认参数?
答案 0 :(得分: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>
但我不知道这是否是您正在寻找的......?