From: Stephanie Leary Date: Tue, 28 Mar 2023 15:34:05 +0000 (+0000) Subject: Add unique ID to grid wrapper X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bcbcb261d562c610bc8377e141f4ad882659bec4;p=working%2FEvergreen.git Add unique ID to grid wrapper Signed-off-by: Stephanie Leary --- diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts index 01ba30c957..0d8fcc1c1a 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.component.ts @@ -128,6 +128,8 @@ export class GridComponent implements OnInit, AfterViewInit, OnDestroy { @Input() reloadOnColumnChange = false; context: GridContext; + private static id: number = 0; + gridDomId: string = 'eg-grid-'; // These events are emitted from our grid-body component. // They are defined here for ease of access to the caller. @@ -158,6 +160,8 @@ export class GridComponent implements OnInit, AfterViewInit, OnDestroy { throw new Error('[egGrid] requires a [dataSource]'); } + this.gridDomId += GridComponent.id++; + this.context.idlClass = this.idlClass; this.context.dataSource = this.dataSource; this.context.persistKey = this.persistKey;