From: Bill Erickson Date: Mon, 15 Mar 2021 17:37:24 +0000 (-0400) Subject: LP1904036 Grid toolbarLabel option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4da36e28dea27e4f02935fdbe3f25ef99a362352;p=working%2FEvergreen.git LP1904036 Grid toolbarLabel option Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html index eb701ce233..755f57440c 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html @@ -2,6 +2,9 @@
+ + {{gridContext.toolbarLabel}} +
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 885a06fc98..e0608706ee 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 @@ -120,6 +120,9 @@ export class GridComponent implements OnInit, AfterViewInit, OnDestroy { @Input() cellTextGenerator: GridCellTextGenerator; + // If set, appears along the top left side of the grid. + @Input() toolbarLabel: string; + context: GridContext; // These events are emitted from our grid-body component. @@ -165,6 +168,7 @@ export class GridComponent implements OnInit, AfterViewInit, OnDestroy { this.context.rowFlairIsEnabled = this.rowFlairIsEnabled === true; this.context.showDeclaredFieldsOnly = this.showDeclaredFieldsOnly; this.context.rowFlairCallback = this.rowFlairCallback; + this.context.toolbarLabel = this.toolbarLabel; this.context.disablePaging = this.disablePaging === true; this.context.cellTextGenerator = this.cellTextGenerator; this.context.ignoredFields = []; diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.ts b/Open-ILS/src/eg2/src/app/share/grid/grid.ts index a22e52a176..914f92ea5d 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -518,6 +518,7 @@ export class GridContext { columnSet: GridColumnSet; autoGeneratedColumnOrder: string; rowSelector: GridRowSelector; + toolbarLabel: string; toolbarButtons: GridToolbarButton[]; toolbarCheckboxes: GridToolbarCheckbox[]; toolbarActions: GridToolbarAction[];