Disable grid cell tooltips by default
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 24 Mar 2023 20:28:10 +0000 (20:28 +0000)
committerStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 24 Mar 2023 20:28:10 +0000 (20:28 +0000)
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Open-ILS/src/eg2/src/app/share/grid/grid-body-cell.component.html
Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid.ts

index e1eeae7..137b2be 100644 (file)
@@ -1,6 +1,6 @@
 
 <div *ngIf="!column.cellTemplate"
-  [ngbTooltip]="column.disableTooltip ? null : context.getRowColumnValue(row, column)"
+  [ngbTooltip]="column.enableTooltip ? context.getRowColumnValue(row, column) : null"
   placement="top-left"
   triggers="mouseenter:mouseleave">
   <ng-container *ngIf="column.datatype === 'bool'">
@@ -13,7 +13,7 @@
   </ng-container>
 </div>
 <div *ngIf="column.cellTemplate" 
-  [ngbTooltip]="column.disableTooltip ? null : column.cellTemplate"
+  [ngbTooltip]="column.enableTooltip ? column.cellTemplate : null"
   placement="top-left"
   #tooltip="ngbTooltip" 
   (mouseenter)="tooltip.open(column.getCellContext(row))"
index 62fa2c7..66889c0 100644 (file)
@@ -46,7 +46,7 @@ export class GridColumnComponent implements OnInit {
     @Input() cellContext: any;
     @Input() cellTemplate: TemplateRef<any>;
 
-    @Input() disableTooltip: boolean;
+    @Input() enableTooltip: boolean;
     @Input() asyncSupportsEmptyTermClick: boolean;
 
     // Required columns are those that must be present in any auto-generated
@@ -77,7 +77,7 @@ export class GridColumnComponent implements OnInit {
         col.isIndex = this.index === true;
         col.cellTemplate = this.cellTemplate;
         col.cellContext = this.cellContext;
-        col.disableTooltip = this.disableTooltip;
+        col.enableTooltip = this.enableTooltip;
         col.isSortable = this.sortable;
         col.isFilterable = this.filterable;
         col.filterOperator = this.initialFilterOperator;
index 3ae1d50..7c117d1 100644 (file)
@@ -40,7 +40,7 @@ export class GridColumn {
     isFilterable: boolean;
     isFiltered: boolean;
     isMultiSortable: boolean;
-    disableTooltip: boolean;
+    enableTooltip: boolean;
     asyncSupportsEmptyTermClick: boolean;
     comparator: (valueA: any, valueB: any) => number;
     required = false;
@@ -91,7 +91,7 @@ export class GridColumn {
         col.isIndex = this.isIndex;
         col.cellTemplate = this.cellTemplate;
         col.cellContext = this.cellContext;
-        col.disableTooltip = this.disableTooltip;
+        col.enableTooltip = this.enableTooltip;
         col.isSortable = this.isSortable;
         col.isFilterable = this.isFilterable;
         col.isMultiSortable = this.isMultiSortable;