Skip to Content
ReferenceTypes

OnNodeDrag

Source on GitHub 

The OnNodeDrag type defines the callback function that is called when a node is being dragged. This callback receives the event and the node that is being dragged.

type OnNodeDrag = (event: React.MouseEvent, node: Node) => void;
Parameters:
NameTypeDefault
eventMouseEvent<Element, MouseEvent>
nodeNodeType
nodesNodeType[]
Returns:
void
Last updated on