-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data grid][docs] Clarify enabling pagination (mui#13350)
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com> Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
- Loading branch information
1 parent
d7abca3
commit ea5c720
Showing
7 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
docs/data/data-grid/pagination/PageSizeAutoPremium.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<DataGridPremium | ||
pagination | ||
rows={rows} | ||
columns={columns} | ||
slots={{ | ||
toolbar: CustomToolbar, | ||
}} | ||
pagination | ||
slots={{ toolbar: CustomToolbar }} | ||
autoPageSize | ||
/> |
17 changes: 17 additions & 0 deletions
17
docs/data/data-grid/pagination/PaginationCommunityNoSnap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from 'react'; | ||
import { DataGrid } from '@mui/x-data-grid'; | ||
import { useDemoData } from '@mui/x-data-grid-generator'; | ||
|
||
export default function PaginationCommunityNoSnap() { | ||
const { data } = useDemoData({ | ||
dataSet: 'Commodity', | ||
rowLength: 500, | ||
maxColumns: 6, | ||
}); | ||
|
||
return ( | ||
<div style={{ height: 300, width: '100%' }}> | ||
<DataGrid {...data} /> | ||
</div> | ||
); | ||
} |
17 changes: 17 additions & 0 deletions
17
docs/data/data-grid/pagination/PaginationCommunityNoSnap.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from 'react'; | ||
import { DataGrid } from '@mui/x-data-grid'; | ||
import { useDemoData } from '@mui/x-data-grid-generator'; | ||
|
||
export default function PaginationCommunityNoSnap() { | ||
const { data } = useDemoData({ | ||
dataSet: 'Commodity', | ||
rowLength: 500, | ||
maxColumns: 6, | ||
}); | ||
|
||
return ( | ||
<div style={{ height: 300, width: '100%' }}> | ||
<DataGrid {...data} /> | ||
</div> | ||
); | ||
} |
1 change: 1 addition & 0 deletions
1
docs/data/data-grid/pagination/PaginationCommunityNoSnap.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<DataGrid {...data} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters