Optional automatic translation of column headers (#2166)

This commit is contained in:
Denys Vuika
2017-08-02 11:44:19 +01:00
committed by Mario Romano
parent 0824a0c325
commit 4addf0fb73
2 changed files with 16 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
[class.adf-data-table__header--sorted-desc]="isColumnSorted(col, 'desc')"
(click)="onColumnHeaderClick(col)">
<span *ngIf="col.srTitle" class="sr-only">{{col.srTitle}}</span>
<span *ngIf="col.title">{{col.title}}</span>
<span *ngIf="col.title">{{ col.title | translate}}</span>
</th>
<!-- Actions (right) -->
<th *ngIf="actions && actionsPosition === 'right'" class="actions-column">