hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
105 stars 55 forks source link

Translate text 'PRESS ENTER TO SAVE' #249

Closed mayraGL closed 6 years ago

mayraGL commented 6 years ago

Hello! I would like to know if there is a way to translate the text 'PRESS ENTER TO SAVE' that is displayed when a field is being edited and has not been saved.

image

this is my method to translate the texts but the property inlineEditEdited is not working

image

thanks

hjalmers commented 6 years ago

Hi, I noticed the property was missing from documentation so I've added it here now. It works for me but there might be some issues regarding usage together with promises, do the other texts work?

mayraGL commented 6 years ago

Yes, you are correct, I was incorrectly using the promise.

This is the right way to do it

image

hjalmers commented 6 years ago

It should probably support promises and/observables too, but in the meantime you'll have to handle it like you just did:)