DragDrop
Class
Service that allows for drag-and-drop functionality to be attached to DOM elements.
API
class DragDrop { createDrag<T = any>(element: any, config?: DragRefConfig): DragRef<T>; createDropList<T = any>(element: any): DropListRef<T>;}
createDrag
DragRef<T>Turns an element into a draggable item.
@paramelement
anyElement to which to attach the dragging functionality.
@returns
DragRef<T>createDropList
DropListRef<T>Turns an element into a drop list.
@paramelement
anyElement to which to attach the drop list functionality.
@returns
DropListRef<T>Jump to details