LP1803787 Grid context retains selection; lint
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / share / grid / grid.ts
index ae61187..cfed24e 100644 (file)
@@ -651,6 +651,13 @@ export class GridContext {
         return selected;
     }
 
+    rowIsSelected(row: any): boolean {
+        const index = this.getRowIndex(row);
+        return this.rowSelector.selected().filter(
+            idx => idx === index
+        ).length > 0;
+    }
+
     getRowColumnValue(row: any, col: GridColumn): string {
         let val;