From 210fef46be59457febcb716e044cdcd3c9938c12 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 7 Feb 2020 17:43:55 -0500 Subject: [PATCH] LP#1850547: eg-grid: Add passthrough capabilities for click-to-dropdown on linked fields Sponsored-by: Evergreen Community Development Initiative Sponsored-by: Georgia Public Library Service Sponsored-by: Indiana State Library Sponsored-by: C/W MARS Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Tiffany Little Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts | 2 ++ Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html | 2 +- Open-ILS/src/eg2/src/app/share/grid/grid.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts index f2171ddd9b..1556d31d49 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts @@ -41,6 +41,7 @@ export class GridColumnComponent implements OnInit { @Input() cellTemplate: TemplateRef; @Input() disableTooltip: boolean; + @Input() asyncSupportsEmptyTermClick: boolean; // get a reference to our container grid. constructor(@Host() private grid: GridComponent) {} @@ -58,6 +59,7 @@ export class GridColumnComponent implements OnInit { col.label = this.label; col.flex = this.flex; col.hidden = this.hidden === true; + col.asyncSupportsEmptyTermClick = this.asyncSupportsEmptyTermClick === true; col.isIndex = this.index === true; col.cellTemplate = this.cellTemplate; col.cellContext = this.cellContext; diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html index 41ffcd74a7..53155db989 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html @@ -14,7 +14,7 @@ - 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 866e685904..678651e8ce 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -39,6 +39,7 @@ export class GridColumn { isFiltered: boolean; isMultiSortable: boolean; disableTooltip: boolean; + asyncSupportsEmptyTermClick: boolean; comparator: (valueA: any, valueB: any) => number; // True if the column was automatically generated. -- 2.11.0