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
Name | Type |
---|---|
event | DragAndDropEvent |
Returns
any
onDragStart
▸ Optional
onDragStart(state
): any
Callback that will be called on drag start. Return false to cancel drag.
Parameters
Name | Type |
---|---|
state | DragAndDropStartEvent |
Returns
any
onDrop
▸ onDrop(event
): any
Callback that will be called on drop.
Parameters
Name | Type |
---|---|
event | DragAndDropEvent |
Returns
any