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

OnConnectStart

Source on GitHub 

The OnConnectStart type represents a callback function that is called when starting to create a connection between nodes. It receives the mouse or touch event and information about the source node and handle.

type OnConnectStart = ( event: MouseEvent | TouchEvent, params: OnConnectStartParams, ) => void;
Parameters:
NameTypeDefault
eventMouseEvent | TouchEvent
paramsOnConnectStartParams
Returns:
void
Last updated on