Skip to Content
You are viewing the v12 docs of React Flow. You can find the latest version here.
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 | TouchEvent
nodeNodeType
nodesNodeType[]
Returns:
void
Last updated on