DragSourceProps<DragDropObject> Interface
Beta
Properties and callbacks for the withDragSource Higher-Order Component.
Properties
Name | Type | Description | |
---|---|---|---|
defaultDragLayer | undefined | React.ComponentType<DragLayerProps<DragDropObject>> | Specifies a default DragLayer component to display as a drag preview. | |
objectType | (data?: DragDropObject) => string | symbol | string | symbol | Specifies the DragSource type. | |
onDragSourceBegin | undefined | (data: DragSourceArguments<DragDropObject>) => DragSourceArguments<DragDropObject> | Triggered when DragSource has begun a drag. | |
onDragSourceEnd | undefined | (data: DragSourceArguments<DragDropObject>) => void | Triggered when a DragSource drag has ended. |
Defined in
Last Updated: 13 June, 2024