ng-datatable is a powerful component for creating dynamic and customizable data tables. It supports large amounts of data, sorting, pagination, and filtering and highly customizable
MIT License
3
stars
4
forks
source link
How can I use the translate module in conjunction with ng-datatable #2
I have a TranslateService to work on the translations part, however, as the table initializes before the constructor, I am unable to call my service to look for the correct translation in json.
I didn't find any field that I can use in the slot to force a new column title, any ideas?
Example:
<ng-template slot="code" let-value="data" **title="aaaaaaaa"**>
You can add translated title in the column definitions as like as provided in screenshot.
{ field: 'name', title: this.translate.instant('name'), cellClass: 'font-semibold' },
I have a TranslateService to work on the translations part, however, as the table initializes before the constructor, I am unable to call my service to look for the correct translation in json.
I didn't find any field that I can use in the slot to force a new column title, any ideas? Example:
<ng-template slot="code" let-value="data" **title="aaaaaaaa"**>