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.js
CHANGED
|
@@ -1242,6 +1242,18 @@ function grid(props, dataGridRef) {
|
|
|
1242
1242
|
});
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
|
+
var customLoad = function customLoad() {
|
|
1246
|
+
debugger;
|
|
1247
|
+
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1248
|
+
state.selectedRowKeys = [];
|
|
1249
|
+
return state;
|
|
1250
|
+
};
|
|
1251
|
+
var customSave = function customSave(state) {
|
|
1252
|
+
debugger;
|
|
1253
|
+
state.selectedRowKeys = [];
|
|
1254
|
+
state.filterValue = [];
|
|
1255
|
+
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1256
|
+
};
|
|
1245
1257
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
1246
1258
|
className: "odsDatagrid",
|
|
1247
1259
|
style: {
|
|
@@ -1441,8 +1453,9 @@ function grid(props, dataGridRef) {
|
|
|
1441
1453
|
});
|
|
1442
1454
|
})), React__default.createElement(dataGrid.StateStoring, {
|
|
1443
1455
|
enabled: true,
|
|
1444
|
-
type: "
|
|
1445
|
-
|
|
1456
|
+
type: "custom",
|
|
1457
|
+
customLoad: customLoad,
|
|
1458
|
+
customSave: customSave
|
|
1446
1459
|
}))));
|
|
1447
1460
|
}
|
|
1448
1461
|
|