e29eb67e6372146fa35aba7a0c137772559a62ac
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / share / grid / grid.component.html
1
2 <div class="eg-grid" role="grid">
3
4   <eg-grid-toolbar
5     [gridContext]="context"
6     [gridPrinter]="gridPrinter"
7     [colWidthConfig]="colWidthConfig"
8     [disableSaveSettings]="!persistKey || ('disabled' === persistKey)">
9   </eg-grid-toolbar>
10
11   <div #egGridStickyHeader [ngClass]="{'eg-grid-sticky-header' : context.stickyGridHeader}">
12     <eg-grid-header [context]="context"></eg-grid-header>
13   </div>
14
15   <eg-grid-column-width #colWidthConfig [gridContext]="context">
16   </eg-grid-column-width>
17
18   <eg-grid-print #gridPrinter [gridContext]="context">
19   </eg-grid-print>
20
21   <ng-container *ngIf="dataSource.data.length == 0">
22     <div class="row">
23       <ng-container *ngIf="dataSource.requestingData">
24         <div class="col-lg-6 offset-lg-3 text-center mt-3">
25           <eg-progress-inline></eg-progress-inline>
26         </div>
27       </ng-container>
28       <ng-container *ngIf="!dataSource.requestingData">
29         <div class="col-lg-12 text-center alert alert-light font-italic">
30           <span i18n>Nothing to Display</span>
31         </div>
32       </ng-container>
33     </div>
34   </ng-container>
35
36   <eg-grid-body [context]="context"></eg-grid-body>
37 </div>
38