Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
ReferenceTypesOnConnectEnd

OnConnectEnd

Source on GitHub 

The OnConnectEnd type represents a callback function that is called when finishing or canceling a connection attempt. It receives the mouse or touch event and the final state of the connection attempt.

type OnConnectEnd = ( event: MouseEvent | TouchEvent, connectionState: FinalConnectionState, ) => void;
Parameters:
NameTypeDefault
eventMouseEvent | TouchEvent
connectionStateFinalConnectionState<InternalNodeBase>
Returns:
void
Last updated on