Skip to content

Commit 43ede4b

Browse files
authored
always show pagination options in DataGrid widget (#1050)
1 parent aa01532 commit 43ede4b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/nasty-cats-dress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ensembleui/react-runtime": patch
3+
---
4+
5+
always show pagination options in Datagrid widget

packages/runtime/src/widgets/DataGrid/DataGrid.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ export const DataGrid: React.FC<GridProps> = (props) => {
394394
pageSize,
395395
total: totalRows,
396396
current: curPage,
397+
showSizeChanger: true, // always show pagination options (otherwise it defaults to total > 50)
397398
};
398399
}, [values, pageSize, curPage, resolvedWidgetId]);
399400

0 commit comments

Comments
 (0)