LP1821382 Angular boolean yes/no display component
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / share / grid / grid-body-cell.component.html
1
2 <span *ngIf="!column.cellTemplate"
3   [ngbTooltip]="column.disableTooltip ? null : context.getRowColumnValue(row, column)"
4   placement="top-left"
5   class="{{context.cellClassCallback(row, column)}}"
6   triggers="mouseenter:mouseleave">
7   <ng-container *ngIf="column.datatype == 'bool'">
8     <eg-bool [value]="context.getRowColumnValue(row, column)"
9       [ternary]="column.ternaryBool">
10     </eg-bool>
11   </ng-container>
12   <ng-container *ngIf="column.datatype != 'bool'">
13     {{context.getRowColumnValue(row, column)}}
14   </ng-container>
15 </span>
16 <span *ngIf="column.cellTemplate" 
17   class="{{context.cellClassCallback(row, column)}}"
18   [ngbTooltip]="column.disableTooltip ? null : column.cellTemplate"
19   placement="top-left"
20   #tooltip="ngbTooltip" 
21   (mouseenter)="tooltip.open(column.getCellContext(row))"
22   (mouseleave)="tooltip.close()" triggers="manual">
23   <ng-container #templateContainer
24     *ngTemplateOutlet="column.cellTemplate; context: column.getCellContext(row)">
25   </ng-container> 
26 </span>
27