答案 0 :(得分:6)
使用自定义页脚模板(请参阅下面的链接)。所以它会覆盖默认页脚。
https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/footer.component.ts
答案 1 :(得分:1)
但如果您只想更改“总计”或“找不到任何项目”,则覆盖邮件属性:
//Static messages in the table you can override for localization.
{
// Message to show when array is presented
// but contains no values
emptyMessage: 'No data to display',
// Footer total message
totalMessage: 'total'
}
https://swimlane.gitbooks.io/ngx-datatable/api/table/inputs.html