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

NodeMouseHandler

Source on GitHub 

The NodeMouseHandler type defines the callback function that is called when mouse events occur on a node. This callback receives the event and the node that triggered it.

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