mui-x
mui-x copied to clipboard
[TreeView] Support item reordering using drag and drop
Doc preview Closes #9686
Requirements for this PR
- #12226
- #12240
- #12610
- #13126
- #13225
Basic example
- Enable the
indentationAtItemLevelexperimental feature (see #13126) - Pass the
itemsReorderingprop
<RichTreeViewPro
items={ITEMS}
itemsReordering
experimentalFeatures={{ indentationAtItemLevel: true }}
/>
Current status
- [x] Support on
TreeItem - [x] Support on
TreeItem2 - [x] Write doc
- [x] Write tests
Deploy preview: https://deploy-preview-12213--material-ui-x.netlify.app/
Updated pages:
- docs/data/tree-view/rich-tree-view/ordering/ordering.md
- docs/data/tree-view/rich-tree-view/items/items.md
Generated by :no_entry_sign: dangerJS against 39cacc41776580e3f656aa67d5f89d51179fc0cb
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Cheering for you, brother. Let's get this in!
頑張れ!
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Opened for review
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
I opened a PR for the env check because it's trivial to fix and doing it before the release is better
For the rest we can do a follow up
I believe that clicking Esc should cancel the dragging and releasing the mouse afterwards should not finish it.
Fully agree, I'll fix that
It would be nice to avoid the animation of the dragging item returning (floating) to the original place before finishing the dragging action.
Could you record your screen with this behavior visible to be sure I'm understand what you are referring to?