Fixed missing pageSizeOptions prop for data grid

This commit is contained in:
Alex Holliday committed 2024-05-08 15:25:43 -07:00
1 parent 488c1cdb2a
commit 30181908ee
1 file changed
+3 -2
+3 -2
View File
@@ -64,7 +64,7 @@ const rows = ((count) => {
name: { name: {
avatarImage: i % 2 === 0 ? avatarImage : null, avatarImage: i % 2 === 0 ? avatarImage : null,
firstName: "Placeholder Name", firstName: "Placeholder Name",
lastName: i, lastName: i.toString(),
}, },
status: "Active", status: "Active",
role: "Product Designer", role: "Product Designer",
@@ -180,7 +180,7 @@ const Demo = () => {
</FormControl> </FormControl>
</div> </div>
<h4>Table</h4> <h4>Table</h4>
<div style={{ width: "50vw" }}> <div style={{ width: "75vw" }}>
<DataGrid <DataGrid
autoHeight autoHeight
columns={cols} columns={cols}
@@ -190,6 +190,7 @@ const Demo = () => {
paginationModel: { page: 0, pageSize: 10 }, paginationModel: { page: 0, pageSize: 10 },
}, },
}} }}
pageSizeOptions={[5, 10]}
/> />
</div> </div>
<h4>Tabs</h4> <h4>Tabs</h4>