• 概要
@angular/cdk/drag-drop

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.

@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