DropTargetProps<DragDropObject> Interface

Beta

Properties and callbacks for the withDragSource Higher-Order Component.

Properties

Name Type Description
canDropTargetDrop undefined | (args: DropTargetArguments<DragDropObject>) => boolean Determines whether item may be dropped on DropTarget.  
objectTypes Array<string | symbol> | () => Array<string | symbol> List of allowed object types  
onDropTargetDrop undefined | (args: DropTargetArguments<DragDropObject>) => DropTargetArguments<DragDropObject> Triggered when item is dropped on wrapped component.  
onDropTargetOver undefined | (args: DropTargetArguments<DragDropObject>) => void Triggered when item is dragged over wrapped component.  

Defined in

Last Updated: 20 September, 2019