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