react-graph-grid 0.0.5 → 0.0.6
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.
- package/README.md +5 -1
- package/package.json +1 -1
- package/src/GridFE.jsx +10 -5
- package/src/css/default.css +0 -1
package/README.md
CHANGED
|
@@ -132,4 +132,8 @@ For more examples see DebugApp.jsx
|
|
|
132
132
|
|
|
133
133
|
0.0.5 version
|
|
134
134
|
|
|
135
|
-
"Adjust column visibility" option added to GridFE.jsx module
|
|
135
|
+
"Adjust column visibility" option added to GridFE.jsx module
|
|
136
|
+
|
|
137
|
+
0.0.6 version
|
|
138
|
+
|
|
139
|
+
Fixed GridFE.showColumnsSettings() function
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "Mikhail Razumtsev",
|
|
4
4
|
"description": "A React package containing a grid that can communicate with other grids through a connection graph",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dev": "vite --port 4000",
|
package/src/GridFE.jsx
CHANGED
|
@@ -540,6 +540,13 @@ export class GridFEClass extends GridFLClass {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
// -------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
543
|
+
applyColumnsVisibility() {
|
|
544
|
+
const grid = this;
|
|
545
|
+
for (let col of grid.columns) {
|
|
546
|
+
col.visible = col._newVisible;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
// -------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
543
550
|
showColumnsSettings() {
|
|
544
551
|
const grid = this;
|
|
545
552
|
grid.popupIsShowing = true;
|
|
@@ -556,11 +563,9 @@ export class GridFEClass extends GridFLClass {
|
|
|
556
563
|
{
|
|
557
564
|
title: grid.translate('OK'),
|
|
558
565
|
onClick: (e) => {
|
|
559
|
-
|
|
560
|
-
col.visible = col._newVisible;
|
|
561
|
-
}
|
|
566
|
+
grid.applyColumnsVisibility();
|
|
562
567
|
grid.columnsSettingsIsShowing = false;
|
|
563
|
-
grid.onClosePopup();
|
|
568
|
+
grid.onClosePopup(e);
|
|
564
569
|
grid.refreshState();
|
|
565
570
|
}
|
|
566
571
|
},
|
|
@@ -568,7 +573,7 @@ export class GridFEClass extends GridFLClass {
|
|
|
568
573
|
title: grid.translate('Cancel'),
|
|
569
574
|
onClick: (e) => {
|
|
570
575
|
grid.columnsSettingsIsShowing = false;
|
|
571
|
-
grid.onClosePopup();
|
|
576
|
+
grid.onClosePopup(e);
|
|
572
577
|
grid.refreshState();
|
|
573
578
|
}
|
|
574
579
|
},
|