docs(readme): add onPaneContextMenu

This commit is contained in:
Moritz
2020-08-05 09:56:37 +02:00
committed by GitHub
parent 7f806f6f50
commit 8544f9802f

View File

@@ -96,6 +96,7 @@ const BasicFlow = () => <ReactFlow elements={elements} />;
- `onMoveEnd()`: called when user ends panning or zooming
- `onSelectionChange(elements: Elements)`: called when user selects one or multiple elements
- `onPaneClick(evt: MouseEvent)`: called when user clicks directly on the canvas
- `onPaneContextMenu(evt: MouseEvent)`: called when user does a right-click on the canvas
#### Interaction
- `nodesDraggable`: default: `true`. This applies to all nodes. You can also change the behavior of a specific node with the `draggable` node option.