ods-component-lib 1.17.52 → 1.17.54
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 +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1198,6 +1198,15 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
function OdsDataGrid(props) {
|
|
1200
1200
|
var dataGridRef = React.useRef(null);
|
|
1201
|
+
React.useEffect(function () {
|
|
1202
|
+
setTimeout(function () {
|
|
1203
|
+
var totalCount = props.dataSource.length;
|
|
1204
|
+
debugger;
|
|
1205
|
+
dataGridRef.current.instance.component.beginUpdate();
|
|
1206
|
+
dataGridRef.current.instance.totalCount(totalCount);
|
|
1207
|
+
dataGridRef.current.instance.component.endUpdate();
|
|
1208
|
+
}, 1000);
|
|
1209
|
+
}, [props.dataSource]);
|
|
1201
1210
|
return grid(props, dataGridRef);
|
|
1202
1211
|
}
|
|
1203
1212
|
function grid(props, dataGridRef) {
|
|
@@ -1443,7 +1452,8 @@ function grid(props, dataGridRef) {
|
|
|
1443
1452
|
menuItemRender: renderMenuItem
|
|
1444
1453
|
})), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
|
|
1445
1454
|
column: "Id",
|
|
1446
|
-
summaryType: "count"
|
|
1455
|
+
summaryType: "count",
|
|
1456
|
+
displayFormat: "{0} Total Data"
|
|
1447
1457
|
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1448
1458
|
return React__default.createElement(dataGrid.TotalItem, {
|
|
1449
1459
|
column: item.columnName,
|