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

Add data-automation-ids for text and date columns in individual rows
This commit is contained in:
Denys Vuika 2016-07-15 16:45:08 +01:00 committed by GitHub
commit 3261f12c42

View File

@ -49,10 +49,10 @@
<i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row, col)}}</i> <i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row, col)}}</i>
<img *ngIf="!isIconValue(row, col)" class="image-cell" alt="{{iconAltTextKey(data.getValue(row, col))|translate}}" src="{{data.getValue(row, col)}}"> <img *ngIf="!isIconValue(row, col)" class="image-cell" alt="{{iconAltTextKey(data.getValue(row, col))|translate}}" src="{{data.getValue(row, col)}}">
</div> </div>
<div *ngSwitchCase="'date'" class="cell-value"> <div *ngSwitchCase="'date'" class="cell-value" [attr.data-automation-id]="'date_' + data.getValue(row, col)">
{{data.getValue(row, col)}} {{data.getValue(row, col)}}
</div> </div>
<div *ngSwitchCase="'text'" class="cell-value"> <div *ngSwitchCase="'text'" class="cell-value" [attr.data-automation-id]="'text_' + data.getValue(row, col)">
{{data.getValue(row, col)}} {{data.getValue(row, col)}}
</div> </div>
<span *ngSwitchDefault class="cell-value"> <span *ngSwitchDefault class="cell-value">