withTreeDragDrop Function

Beta  @deprecated

A HOC component that adds drag and drop functionality to the supplied tree component.

withTreeDragDrop<P extends TreeProps, DragDropObject extends TreeDragDropType>(TreeComponent: React.ComponentType<P extends TreeProps>): React.ComponentType<P extends TreeProps & TreeDragDropProps<DragDropObject extends TreeDragDropType>>

Parameter Type Description
TreeComponent React.ComponentType<P extends TreeProps>  

Returns - React.ComponentType<P extends TreeProps & TreeDragDropProps<DragDropObject extends TreeDragDropType>>

Defined in

Last Updated: 13 June, 2024