mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add aria-sort (#4997)
This commit is contained in:
committed by
Denys Vuika
parent
83412bb9b6
commit
f5c5e7cf9e
@@ -25,6 +25,11 @@
|
|||||||
(keyup.enter)="onColumnHeaderClick(col)"
|
(keyup.enter)="onColumnHeaderClick(col)"
|
||||||
role="columnheader"
|
role="columnheader"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
[attr.aria-sort]="col.sortable ?
|
||||||
|
((isColumnSorted(col, 'asc') ?
|
||||||
|
'ADF-DATATABLE.ACCESSIBILITY.SORT_ASCENDING':
|
||||||
|
'ADF-DATATABLE.ACCESSIBILITY.SORT_DESCENDING') | translate) :
|
||||||
|
null"
|
||||||
title="{{ col.title | translate }}"
|
title="{{ col.title | translate }}"
|
||||||
adf-drop-zone dropTarget="header" [dropColumn]="col">
|
adf-drop-zone dropTarget="header" [dropColumn]="col">
|
||||||
<span *ngIf="col.srTitle" class="adf-sr-only">{{ col.srTitle | translate }}</span>
|
<span *ngIf="col.srTitle" class="adf-sr-only">{{ col.srTitle | translate }}</span>
|
||||||
|
@@ -258,7 +258,9 @@
|
|||||||
},
|
},
|
||||||
"ACCESSIBILITY": {
|
"ACCESSIBILITY": {
|
||||||
"SELECT_ALL": "Select all",
|
"SELECT_ALL": "Select all",
|
||||||
"SELECT_FILE": "Select file"
|
"SELECT_FILE": "Select file",
|
||||||
|
"SORT_ASCENDING": "ascending",
|
||||||
|
"SORT_DESCENDING": "descending"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"USER_PROFILE": {
|
"USER_PROFILE": {
|
||||||
|
Reference in New Issue
Block a user