• Overview
@angular/cdk/drag-drop

DragDrop

Class

Service that allows for drag-and-drop functionality to be attached to DOM elements.

API

  
    class DragDrop {}
  
  

constructor

DragDrop
@paramargsunknown[]
@returnsDragDrop

createDrag

DragRef<T>

Turns an element into a draggable item.

@paramelementany

Element to which to attach the dragging functionality.

@paramconfigDragRefConfig

Object used to configure the dragging behavior.

@returnsDragRef<T>

createDropList

DropListRef<T>

Turns an element into a drop list.

@paramelementany

Element to which to attach the drop list functionality.

@returnsDropListRef<T>
Jump to details