LP#1850547: eg-grid: Add passthrough capabilities for click-to-dropdown on linked...
authorMike Rylander <mrylander@gmail.com>
Fri, 7 Feb 2020 22:43:55 +0000 (17:43 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 3 Sep 2020 15:51:41 +0000 (11:51 -0400)
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 <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html
Open-ILS/src/eg2/src/app/share/grid/grid.ts

index f2171dd..1556d31 100644 (file)
@@ -41,6 +41,7 @@ export class GridColumnComponent implements OnInit {
     @Input() cellTemplate: TemplateRef<any>;
 
     @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;
index 41ffcd7..53155db 100644 (file)
@@ -14,7 +14,7 @@
             </div>
           </div>
         </div>
-        <eg-combobox [idlClass]="col.idlFieldDef.class" (onChange)="applyLinkFilter($event, col)" 
+        <eg-combobox [asyncSupportsEmptyTermClick]="col.asyncSupportsEmptyTermClick" [idlClass]="col.idlFieldDef.class" (onChange)="applyLinkFilter($event, col)" 
           i18n-placeholder placeholder="Enter value to filter by"></eg-combobox>
       </div>
     </div>
index 866e685..678651e 100644 (file)
@@ -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.