-
-
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] Fix
showColumnVerticalBorder
prop (#16715)
- Loading branch information
1 parent
98e2985
commit 5269b07
Showing
4 changed files
with
55 additions
and
3 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
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,26 @@ | ||
import * as React from 'react'; | ||
import { DataGridPro } from '@mui/x-data-grid-pro'; | ||
import { randomTraderName, randomEmail } from '@mui/x-data-grid-generator'; | ||
|
||
const columns = [ | ||
{ field: 'name', headerName: 'Name', width: 160 }, | ||
{ field: 'email', headerName: 'Email', width: 200 }, | ||
{ field: 'age', headerName: 'Age', type: 'number' }, | ||
]; | ||
|
||
const rows = [ | ||
{ | ||
id: 1, | ||
name: randomTraderName(), | ||
email: randomEmail(), | ||
age: 25, | ||
}, | ||
]; | ||
|
||
export default function DataGridBordered() { | ||
return ( | ||
<div style={{ height: 400, width: '100%' }}> | ||
<DataGridPro rows={rows} columns={columns} showCellVerticalBorder /> | ||
</div> | ||
); | ||
} |
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,26 @@ | ||
import * as React from 'react'; | ||
import { DataGridPro } from '@mui/x-data-grid-pro'; | ||
import { randomTraderName, randomEmail } from '@mui/x-data-grid-generator'; | ||
|
||
const columns = [ | ||
{ field: 'name', headerName: 'Name', width: 160 }, | ||
{ field: 'email', headerName: 'Email', width: 200 }, | ||
{ field: 'age', headerName: 'Age', type: 'number' }, | ||
]; | ||
|
||
const rows = [ | ||
{ | ||
id: 1, | ||
name: randomTraderName(), | ||
email: randomEmail(), | ||
age: 25, | ||
}, | ||
]; | ||
|
||
export default function DataGridBordered() { | ||
return ( | ||
<div style={{ height: 400, width: '100%' }}> | ||
<DataGridPro rows={rows} columns={columns} showColumnVerticalBorder /> | ||
</div> | ||
); | ||
} |