Skip to Content
You are viewing the v12 docs of React Flow. You can find the latest version here.
ReferenceTypes

SelectionDragHandler

Source on GitHub 

The SelectionDragHandler type is a callback for handling drag events involving selected nodes. It receives the triggering mouse or touch event and an array of the affected nodes.

type SelectionDragHandler<NodeType extends Node = Node> = ( event: ReactMouseEvent, nodes: NodeType[], ) => void;
Parameters:
NameTypeDefault
eventMouseEvent<Element, MouseEvent>
nodesNodeType[]
Returns:
void
Last updated on