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

EdgeMouseHandler

Source on GitHub 

The EdgeMouseHandler type defines the callback function that is called when mouse events occur on an edge. This callback receives the event and the edge that triggered it.

type EdgeMouseHandler = (event: React.MouseEvent, edge: Edge) => void;
Parameters:
NameTypeDefault
eventMouseEvent<Element, MouseEvent>
edgeEdgeType
Returns:
void
Last updated on