Overview
TheDragDropManager is the core class that orchestrates all drag-and-drop operations. It manages the lifecycle of drag operations, coordinates sensors and plugins, and maintains a registry of draggable and droppable elements.
Constructor
Parameters
Input
Configuration options for the manager
Default Preset
The manager automatically includes a default preset of sensors and plugins:ScrollListener- Tracks scroll eventsScroller- Manages scrolling logicStyleInjector- Injects plugin styles
Usage
Basic Setup
Custom Configuration
Disable Default Preset
Properties
dragOperation
registry
monitor
actions
Internal actions used by sensors:Events
Listen to drag-and-drop events using the monitor:dragstart
DragStartEvent
dragmove
DragMoveEvent
dragover
DragOverEvent
dragend
DragEndEvent