mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Add data-automation-id for column headers
This commit is contained in:
parent
2e4a6079c3
commit
7b9172d40b
@ -11,6 +11,7 @@
|
|||||||
<th class="mdl-data-table__cell--non-numeric {{col.cssClass}}"
|
<th class="mdl-data-table__cell--non-numeric {{col.cssClass}}"
|
||||||
*ngFor="#col of columns"
|
*ngFor="#col of columns"
|
||||||
[class.column-header]="col.title"
|
[class.column-header]="col.title"
|
||||||
|
[attr.data.automation-id]=“‘auto_id_’ + col.source”
|
||||||
[class.mdl-data-table__header--sorted-ascending]="sorting.key === col.source && sorting.direction === 'asc'"
|
[class.mdl-data-table__header--sorted-ascending]="sorting.key === col.source && sorting.direction === 'asc'"
|
||||||
[class.mdl-data-table__header--sorted-descending]="sorting.key === col.source && sorting.direction === 'desc'"
|
[class.mdl-data-table__header--sorted-descending]="sorting.key === col.source && sorting.direction === 'desc'"
|
||||||
(click)="onColumnHeaderClick(col)">
|
(click)="onColumnHeaderClick(col)">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user