1 <div class="btn-group">
2 <ng-container *ngIf="currentAction">
4 title="{{ useDisableDesc(currentAction) }}"
5 class="btn btn-{{btnColor}}"
6 [ngClass]="{'disabled': disableSelectionAction(currentAction)}"
7 (click)="useClickAction(currentAction)"
8 [routerLink]="useRouterLink(currentAction)"
9 data-testid="table-action-button"
10 [preserveFragment]="currentAction.preserveFragment ? '' : null">
11 <i [ngClass]="[currentAction.icon]"></i>
12 <span>{{ currentAction.name }}</span>
15 <div class="btn-group"
18 *ngIf="dropDownActions.length > 1"
19 aria-label="Button group with nested dropdown">
20 <button class="btn btn-{{btnColor}} dropdown-toggle-split"
22 <ng-container *ngIf="dropDownOnly">{{ dropDownOnly }} </ng-container>
23 <span *ngIf="!dropDownOnly"
24 class="sr-only"></span>
26 <div class="dropdown-menu"
28 <ng-container *ngFor="let action of dropDownActions">
29 <button ngbDropdownItem
30 class="{{ toClassName(action) }}"
31 title="{{ useDisableDesc(action) }}"
32 (click)="useClickAction(action)"
33 [routerLink]="useRouterLink(action)"
34 [preserveFragment]="action.preserveFragment ? '' : null"
35 [disabled]="disableSelectionAction(action)">
36 <i [ngClass]="[action.icon]"></i>
37 <span>{{ action.name }}</span>