add aria label and selected (#4999)

This commit is contained in:
Cilibiu Bogdan
2019-08-19 23:53:25 +03:00
committed by Eugenio Romano
parent 643510ed45
commit 9960a37e9a

View File

@@ -97,6 +97,8 @@
class=" adf-datatable-cell adf-datatable-cell--{{col.type || 'text'}} {{col.cssClass}}" class=" adf-datatable-cell adf-datatable-cell--{{col.type || 'text'}} {{col.cssClass}}"
[attr.title]="col.title | translate" [attr.title]="col.title | translate"
[attr.data-automation-id]="getAutomationValue(row, col)" [attr.data-automation-id]="getAutomationValue(row, col)"
[attr.aria-selected]="row.isSelected ? true : false"
[attr.aria-label]="col.title ? (col.title | translate) : null"
tabindex="0" tabindex="0"
(click)="onRowClick(row, $event)" (click)="onRowClick(row, $event)"
(keydown.enter)="onEnterKeyPressed(row, $event)" (keydown.enter)="onEnterKeyPressed(row, $event)"