close
Skip to Content
React Flow Pro is now integrated into reactflow.dev! Read more here →
ReferenceTypes

OnSelectionChangeFunc

Source on GitHub 

The OnSelectionChangeFunc type is a callback that is triggered when the selection of nodes or edges changes. It receives an object containing the currently selected nodes and edges.

type OnSelectionChangeFunc = (params: { nodes: Node[]; edges: Edge[] }) => void;
Parameters:
NameTypeDefault
paramsOnSelectionChangeParams<NodeType, EdgeType>
Returns:
void
Last updated on