Skip to main content

Interface: DragAndDropItemProps

Properties​

draggable​

• draggable: Element

Represents element to drag. It will be wrapped in another element with disabled user-select and touch-action.


droppable​

• Optional droppable: Element

Element to render while dragging. Same as draggable if not provided.

Methods​

onDrag​

▸ Optional onDrag(event): any

Callback that will be called during pointer movement.

Parameters​

NameType
eventDragAndDropEvent

Returns​

any


onDragStart​

▸ Optional onDragStart(state): any

Callback that will be called on drag start. Return false to cancel drag.

Parameters​

NameType
stateDragAndDropStartEvent

Returns​

any


onDrop​

▸ onDrop(event): any

Callback that will be called on drop.

Parameters​

NameType
eventDragAndDropEvent

Returns​

any