-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DataGrid] Change default loading overlay variants (#15504)
- Loading branch information
1 parent
cdccf7d
commit 1b9df94
Showing
10 changed files
with
85 additions
and
44 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
File renamed without changes.
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
10 changes: 10 additions & 0 deletions
10
docs/data/data-grid/overlays/LoadingOverlayCircularProgress.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,10 @@ | ||
<DataGrid | ||
{...data} | ||
loading | ||
slotProps={{ | ||
loadingOverlay: { | ||
variant: 'circular-progress', | ||
noRowsVariant: 'circular-progress', | ||
}, | ||
}} | ||
/> |
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
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
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
33 changes: 33 additions & 0 deletions
33
test/regressions/data-grid/DataGridPinnedColumnsSkeletonLoading.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,33 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import { useDemoData } from '@mui/x-data-grid-generator'; | ||
import { DataGridPro } from '@mui/x-data-grid-pro'; | ||
|
||
export default function DataGridPinnedColumnsSkeletonLoading() { | ||
const { data } = useDemoData({ | ||
dataSet: 'Commodity', | ||
rowLength: 100, | ||
maxColumns: 9, | ||
}); | ||
|
||
return ( | ||
<Box sx={{ width: '100%', height: 400 }}> | ||
<DataGridPro | ||
{...data} | ||
loading | ||
slotProps={{ | ||
loadingOverlay: { | ||
variant: 'skeleton', | ||
noRowsVariant: 'skeleton', | ||
}, | ||
}} | ||
initialState={{ | ||
pinnedColumns: { | ||
left: ['desk'], | ||
right: ['status'], | ||
}, | ||
}} | ||
/> | ||
</Box> | ||
); | ||
} |