]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/share/grid/grid-toolbar-actions-menu.component.html
LP1803787 Grid toolbar actions menu component; cleanup
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / share / grid / grid-toolbar-actions-menu.component.html
1 <button class="dropdown-item scrollable-menu" 
2   [disabled]="shouldDisable(action)"
3   (click)="performAction(action)"
4   *ngFor="let action of gridContext.toolbarActions">
5   <ng-container *ngIf="action.isGroup">
6     <span class="font-weight-bold font-italic">{{action.label}}</span>
7   </ng-container>
8   <ng-container *ngIf="action.isSeparator">
9     <div class="dropdown-divider"></div>
10   </ng-container>
11   <ng-container *ngIf="!action.isGroup && !action.isSeparator">
12     <!-- grouped entries are left paddded for group indentation -->        
13     <span [ngClass]="{'ml-2': action.group}">{{action.label}}</span>
14   </ng-container>
15 </button>