From bcbcb261d562c610bc8377e141f4ad882659bec4 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Tue, 28 Mar 2023 15:34:05 +0000 Subject: [PATCH] Add unique ID to grid wrapper Signed-off-by: Stephanie Leary --- Open-ILS/src/eg2/src/app/share/grid/grid.component.ts | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.11.0