#181 Context menu implementation

This commit is contained in:
Denys Vuika
2016-06-13 13:37:06 +01:00
parent 8e5f120e94
commit dda57d8b8b
9 changed files with 286 additions and 6 deletions

View File

@@ -44,6 +44,7 @@
class="mdl-data-table__cell--non-numeric non-selectable data-cell {{col.cssClass}}"
(click)="onItemClick(content, $event)"
(dblclick)="onItemDblClick(content, $event)"
[context-menu]="getContextActions(content)"
[attr.data-automation-id]="col.source === '$thumbnail' ? '$thumbnail' : col.source + '_' + getObjectValue(content.entry, col.source)">
<div *ngSwitchWhen="'image'" class="cell-value">
<img class="thumbnail" [src]="getCellValue(content, col)">