feat(DragRegistry): support for multiple drag #11780
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Drag and Drop Documentation and Multiple Drag Sample
This PR adds comprehensive drag and drop documentation and a new sample showing multiple item dragging.
What's New
Documentation
/docs/2-advanced/17-drag-and-drop.md
Website Sample
startMultipleDrag()
API for custom drag ghostsDragRegistry Improvements
How to Use Multiple Drag
Follow these steps to add multiple drag to your lists:
Step 1: Set up your list
Make your list items draggable
Step 2: Import the multiple drag function
Step 3: Handle drag start
Add this event listener to make the framework show the multiple drag ghost:
Step 4: Handle the actual move
Add move handlers to move all selected items together: