-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into allow-non-mit-props-in-mit
- Loading branch information
Showing
5 changed files
with
138 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Cherry pick master to v6 | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- master | ||
types: ['closed'] | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
cherry_pick_to_v6: | ||
runs-on: ubuntu-latest | ||
name: Cherry pick into v6 | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'needs cherry-pick') && github.event.pull_request.merged == true }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cherry pick and create the new PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: carloscastrojumo/github-cherry-pick-action@a145da1b8142e752d3cbc11aaaa46a535690f0c5 # v1.0.9 | ||
with: | ||
branch: v6.x | ||
body: 'Cherry-pick of #{old_pull_request_id}' | ||
cherry-pick-branch: ${{ format('cherry-pick-{0}', github.event.number) }} | ||
title: '{old_title} (@${{ github.event.pull_request.user.login }})' | ||
labels: | | ||
cherry-pick |
48 changes: 48 additions & 0 deletions
48
docs/data/data-grid/row-selection/CheckboxSelectionVisibleOnlyGrid.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,48 @@ | ||
import * as React from 'react'; | ||
import { DataGridPro } from '@mui/x-data-grid-pro'; | ||
import { useDemoData } from '@mui/x-data-grid-generator'; | ||
import FormControlLabel from '@mui/material/FormControlLabel'; | ||
import Switch from '@mui/material/Switch'; | ||
import Box from '@mui/material/Box'; | ||
|
||
export default function CheckboxSelectionVisibleOnlyGrid() { | ||
const [checkboxSelectionVisibleOnly, setCheckboxSelectionVisibleOnly] = | ||
React.useState(false); | ||
|
||
const { data } = useDemoData({ | ||
dataSet: 'Commodity', | ||
rowLength: 300, | ||
maxColumns: 5, | ||
}); | ||
|
||
return ( | ||
<div style={{ width: '100%' }}> | ||
<Box sx={{ mb: 1 }}> | ||
<FormControlLabel | ||
label="checkboxSelectionVisibleOnly" | ||
control={ | ||
<Switch | ||
checked={checkboxSelectionVisibleOnly} | ||
onChange={(event) => | ||
setCheckboxSelectionVisibleOnly(event.target.checked) | ||
} | ||
/> | ||
} | ||
/> | ||
</Box> | ||
<div style={{ height: 400 }}> | ||
<DataGridPro | ||
{...data} | ||
initialState={{ | ||
...data.initialState, | ||
pagination: { paginationModel: { pageSize: 50 } }, | ||
}} | ||
pageSizeOptions={[5, 10, 25, 50, 100]} | ||
pagination | ||
checkboxSelection | ||
checkboxSelectionVisibleOnly={checkboxSelectionVisibleOnly} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
48 changes: 48 additions & 0 deletions
48
docs/data/data-grid/row-selection/CheckboxSelectionVisibleOnlyGrid.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,48 @@ | ||
import * as React from 'react'; | ||
import { DataGridPro } from '@mui/x-data-grid-pro'; | ||
import { useDemoData } from '@mui/x-data-grid-generator'; | ||
import FormControlLabel from '@mui/material/FormControlLabel'; | ||
import Switch from '@mui/material/Switch'; | ||
import Box from '@mui/material/Box'; | ||
|
||
export default function CheckboxSelectionVisibleOnlyGrid() { | ||
const [checkboxSelectionVisibleOnly, setCheckboxSelectionVisibleOnly] = | ||
React.useState(false); | ||
|
||
const { data } = useDemoData({ | ||
dataSet: 'Commodity', | ||
rowLength: 300, | ||
maxColumns: 5, | ||
}); | ||
|
||
return ( | ||
<div style={{ width: '100%' }}> | ||
<Box sx={{ mb: 1 }}> | ||
<FormControlLabel | ||
label="checkboxSelectionVisibleOnly" | ||
control={ | ||
<Switch | ||
checked={checkboxSelectionVisibleOnly} | ||
onChange={(event) => | ||
setCheckboxSelectionVisibleOnly(event.target.checked) | ||
} | ||
/> | ||
} | ||
/> | ||
</Box> | ||
<div style={{ height: 400 }}> | ||
<DataGridPro | ||
{...data} | ||
initialState={{ | ||
...data.initialState, | ||
pagination: { paginationModel: { pageSize: 50 } }, | ||
}} | ||
pageSizeOptions={[5, 10, 25, 50, 100]} | ||
pagination | ||
checkboxSelection | ||
checkboxSelectionVisibleOnly={checkboxSelectionVisibleOnly} | ||
/> | ||
</div> | ||
</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