blob: 8110e25158eebd6d243aa51823a75e8d9531f9d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<div class="dropdown-root" ngbDropdown [placement]="placement">
<div class="action-button" [ngClass]="{ small: buttonSize === 'small' }" ngbDropdownToggle role="button">
<span class="icon icon-action"></span>
</div>
<div ngbDropdownMenu class="dropdown-menu">
<ng-container *ngFor="let action of actions">
<div class="dropdown-item" *ngIf="action.isDisplayed === undefined || action.isDisplayed(entry) === true">
<a *ngIf="action.linkBuilder" class="dropdown-item" [routerLink]="action.linkBuilder(entry)">{{ action.label }}</a>
<span *ngIf="!action.linkBuilder" class="custom-action" class="dropdown-item" (click)="action.handler(entry)" role="button">
{{ action.label }}
</span>
</div>
</ng-container>
</div>
</div>
|