feat(props): add onConnectEnd function #451

This commit is contained in:
moklick
2020-08-21 09:40:27 +02:00
parent 56c30a442c
commit 5b4b114935
8 changed files with 38 additions and 2 deletions
+1
View File
@@ -91,6 +91,7 @@ const BasicFlow = () => <ReactFlow elements={elements} />;
- `onConnect({ source, target })`: called when user connects two nodes
- `onConnectStart(event: MouseEvent, { nodeId, handleType })`: called when user starts to drag connection line
- `onConnectStop(event: MouseEvent)`: called when user stops to drag connection line
- `onConnectEnd(event: MouseEvent)`: called after user stops or connects nodes
- `onLoad(reactFlowInstance)`: called after flow is initialized
- `onMove()`: called when user is panning or zooming
- `onMoveStart()`: called when user starts panning or zooming