Merge pull request #97 from Alfresco/dev-hashraf-auto-ids

Dev hashraf auto ids
This commit is contained in:
Mario Romano
2016-05-24 14:22:41 +02:00
@@ -11,6 +11,7 @@
<th class="mdl-data-table__cell--non-numeric {{col.cssClass}}"
*ngFor="#col of columns"
[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-descending]="sorting.key === col.source && sorting.direction === 'desc'"
(click)="onColumnHeaderClick(col)">
@@ -32,7 +33,8 @@
</td>
</tr>
<tr *ngFor="#content of folder.list.entries; #idx = index">
<tr *ngFor="#content of folder.list.entries; #idx = index"
[attr.data.automation-id]="getObjectValue(content.entry, 'name')">
<!-- Columns -->
<td *ngFor="#col of columns" [ngSwitch]="col.source"
class="mdl-data-table__cell--non-numeric {{content.entry.isFolder ? 'folder-row-cell' : 'document-row-cell'}} {{col.cssClass}}"