ods-component-lib 1.17.46 → 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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -3
- 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: {
|
|
@@ -1259,7 +1271,6 @@ function grid(props, dataGridRef) {
|
|
|
1259
1271
|
showRowLines: true,
|
|
1260
1272
|
showBorders: true,
|
|
1261
1273
|
columnAutoWidth: false,
|
|
1262
|
-
filterValue: [],
|
|
1263
1274
|
focusedRowEnabled: false,
|
|
1264
1275
|
wordWrapEnabled: false,
|
|
1265
1276
|
noDataText: "No Data",
|
|
@@ -1438,8 +1449,9 @@ function grid(props, dataGridRef) {
|
|
|
1438
1449
|
});
|
|
1439
1450
|
})), React.createElement(StateStoring, {
|
|
1440
1451
|
enabled: true,
|
|
1441
|
-
type: "
|
|
1442
|
-
|
|
1452
|
+
type: "custom",
|
|
1453
|
+
customLoad: customLoad,
|
|
1454
|
+
customSave: customSave
|
|
1443
1455
|
}))));
|
|
1444
1456
|
}
|
|
1445
1457
|
|