swimlane / ngx-datatable

✨ A feature-rich yet lightweight data-table crafted for Angular
http://swimlane.github.io/ngx-datatable/
MIT License
4.63k stars 1.68k forks source link

Edit "total" string in datatable footer #1084

Open stevandric opened 7 years ago

stevandric commented 7 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior String "total" in the footer of datatable can't be changed outside ngx-datatable

Expected behavior Set any string instead of string "total" outside ngx-datatable

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

anisharknair commented 7 years ago

I have tried to set the "total" string of footer by accessing data table's messages array. This worked for me.

this.ngxdataTable.messages.totalMessage="totalnew"; this.ngxdataTable.messages.selectedMessage=""

ehsanshrz commented 6 years ago

@anisharknair hi where type this code

Qualaelay commented 5 years ago

@ehsanshrz You can refer to https://github.com/swimlane/ngx-datatable/issues/1116