]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/share/grid/grid-print.component.html
LP#1819179: Angular value formatter gets link smarts
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / share / grid / grid-print.component.html
1
2
3 <ng-container>
4   <eg-progress-dialog #progressDialog></eg-progress-dialog>
5   <ng-template #printTemplate let-context>
6     <div>
7       <style>
8         .grid-print-table {
9           border-collapse: collapse;
10           margin: 1px;
11         }
12         .grid-print-table td {
13           padding: 2px;
14           border: 1px solid #aaa;
15         }
16       </style>
17       <table class="grid-print-table">
18         <thead>
19           <tr><th *ngFor="let col of context.columns">{{col.label}}</th></tr>
20         </thead>
21         <tbody>
22           <tr *ngFor="let row of context.rows; trackBy: index">
23             <!-- item values have already been filtered, etc. -->
24             <td *ngFor="let col of context.columns"><span>{{row[col.name]}}</span></td>
25           </tr>
26         </tbody>
27       </table>
28     </div>
29   </ng-template>
30 </ng-container>