LP1803787 Grid actions menu tabindex
[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)" tabindex="0"
4   *ngFor="let action of gridContext.toolbarActions; let idx = index">
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>