Optional
config: DragDropConfiguration = {}A set of callback functions for each action of the drag & drop workflow.
The HTML selector which identifies draggable elements.
The HTML selector which identifies drop targets.
A set of functions to control authorization to begin drag workflows, and drop content.
Static
implementationRetrieve the configured DragDrop implementation.
Bind the DragDrop controller to an HTML application
The HTML element to which the handler is bound
Execute a callback function associated with a certain action in the workflow
The drag event being handled
The action being attempted
Test whether the current user has permission to perform a step of the workflow
The action being attempted
The selector being targeted
Can the action be performed?
Protected
_handleProtected
Handle a drag workflow ending for any reason.
The drag event.
Protected
_handleProtected
Handle entering a drop target while dragging.
The drag event.
Protected
_handleProtected
Handle leaving a drop target while dragging.
The drag event.
Protected
_handleProtected
Handle a dragged element over a droppable target
The drag event being handled
Protected
_handleProtected
Handle the start of a drag workflow
The drag event being handled
Protected
_handleProtected
Handle a dragged element dropped on a droppable target
The drag event being handled
Static
createA helper to create an image preview element for use during HTML element dragging.
A controller class for managing drag and drop workflows within an Application instance. The controller manages the following actions: dragstart, dragover, drop.
Example: Activate drag-and-drop handling for a certain set of elements