@trudb/tru-common-lib 0.0.551 → 0.0.552
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2875,12 +2875,20 @@ class TruDataGrid {
|
|
|
2875
2875
|
this.gridOptions.api.deselectAll();
|
|
2876
2876
|
}
|
|
2877
2877
|
let columnDefs = this.config.resultConfig.columnDefs;
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
}
|
|
2878
|
+
if (event.column.colDef.pinned) {
|
|
2879
|
+
columnDefs.forEach((columnDef, index) => {
|
|
2880
|
+
if (index !== 0)
|
|
2881
|
+
columnDef.headerClass = 'ag-column-focus';
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
else {
|
|
2885
|
+
columnDefs.forEach((columnDef, index) => {
|
|
2886
|
+
if (index !== 0 && event.column.colId === columnDef.field)
|
|
2887
|
+
columnDef.headerClass = 'ag-column-focus';
|
|
2888
|
+
else
|
|
2889
|
+
columnDef.headerClass = undefined;
|
|
2890
|
+
});
|
|
2891
|
+
}
|
|
2884
2892
|
this.gridOptions.api.setColumnDefs(columnDefs);
|
|
2885
2893
|
}
|
|
2886
2894
|
ngOnInit() {
|