@redsift/table 11.8.1 → 11.8.2
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.
|
@@ -2697,10 +2697,12 @@ const useStatefulTable = props => {
|
|
|
2697
2697
|
column.width = dimensionModel[column.field] || column.width || 100;
|
|
2698
2698
|
return column;
|
|
2699
2699
|
}), [propsColumns, dimensionModel]);
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
apiRef.current.
|
|
2703
|
-
|
|
2700
|
+
if (apiRef.current) {
|
|
2701
|
+
/** Add resetPage method to apiRef. */
|
|
2702
|
+
apiRef.current.resetPage = () => {
|
|
2703
|
+
apiRef.current.setPage(0);
|
|
2704
|
+
};
|
|
2705
|
+
}
|
|
2704
2706
|
return {
|
|
2705
2707
|
apiRef,
|
|
2706
2708
|
columns,
|