grid cell classes, first pass
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 10 Mar 2023 21:15:40 +0000 (21:15 +0000)
committerStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 10 Mar 2023 21:15:40 +0000 (21:15 +0000)
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Open-ILS/src/eg2/src/app/share/grid/grid-body.component.html

index 7a4ef5b..b654ca7 100644 (file)
@@ -41,8 +41,7 @@
     <!-- contextMenu applied to cells instead of rows so the position
          of the popover is close to the mouse.  As of writing, no way
          to position the popover at the mouse -->
-      <td [context]="context" [row]="row" [column]="col" role="gridcell" class="eg-grid-cell eg-grid-body-cell"
-      [ngStyle]="{flex:col.flex}"
+    <td [context]="context" [row]="row" [column]="col" class="eg-grid-cell eg-grid-body-cell eg-grid-col-{{col.name}} eg-grid-type-{{col.datatype}} eg-grid-class-{{context.idlClass}}"
       [ngClass]="{'eg-grid-cell-overflow': context.overflowCells}"
       (dblclick)="onRowDblClick(row)"
       (click)="onRowClick($event, row, idx)"