• Overview
@angular/cdk/drag-drop

CdkDragDrop

interface

Event emitted when the user drops a draggable item inside a drop container.

API

  
    interface CdkDragDrop<T, O = T, I = any> {}
  
  

previousIndex

number

Index of the item when it was picked up.

currentIndex

number

Current index of the item.

item

CdkDrag<I>

Item that is being dropped.

container

CdkDropList<T>

Container in which the item was dropped.

previousContainer

CdkDropList<O>

Container from which the item was picked up. Can be the same as the container.

isPointerOverContainer

boolean

Whether the user's pointer was over the container when the item was dropped.

distance

{ x: number; y: number; }

Distance in pixels that the user has dragged since the drag sequence started.

dropPoint

{ x: number; y: number; }

Position where the pointer was when the item was dropped

event

MouseEvent | TouchEvent

Native event that caused the drop event.

Jump to details