OnSelectionChange
The OnSelectionChange type is a callback that is triggered when the selection
of nodes or edges changes. It receives an object containing the incoming selection
of nodes and edges.
type OnSelectionChange<
NodeType extends Node = Node,
EdgeType extends Edge = Edge
> = (params: { nodes: NodeType[]; edges: EdgeType[] }) => void;| Name | Type | Default |
|---|---|---|
params | { nodes: NodeType[]; edges: EdgeType[]; } |