ods-component-lib 1.17.45 → 1.17.48
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/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1238,6 +1238,18 @@ function grid(props, dataGridRef) {
|
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
|
+
var customLoad = function customLoad() {
|
|
1242
|
+
debugger;
|
|
1243
|
+
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1244
|
+
state.selectedRowKeys = [];
|
|
1245
|
+
return state;
|
|
1246
|
+
};
|
|
1247
|
+
var customSave = function customSave(state) {
|
|
1248
|
+
debugger;
|
|
1249
|
+
state.selectedRowKeys = [];
|
|
1250
|
+
state.filterValue = [];
|
|
1251
|
+
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1252
|
+
};
|
|
1241
1253
|
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
1242
1254
|
className: "odsDatagrid",
|
|
1243
1255
|
style: {
|
|
@@ -1437,8 +1449,9 @@ function grid(props, dataGridRef) {
|
|
|
1437
1449
|
});
|
|
1438
1450
|
})), React.createElement(StateStoring, {
|
|
1439
1451
|
enabled: true,
|
|
1440
|
-
type: "
|
|
1441
|
-
|
|
1452
|
+
type: "custom",
|
|
1453
|
+
customLoad: customLoad,
|
|
1454
|
+
customSave: customSave
|
|
1442
1455
|
}))));
|
|
1443
1456
|
}
|
|
1444
1457
|
|