Skip to Content

OnInit

GitHub 上的源代码 

¥Source on GitHub 

OnInit 类型定义了初始化 ReactFlow 实例时调用的回调函数。此回调接收 ReactFlow 实例作为其参数。

¥The OnInit type defines the callback function that is called when the ReactFlow instance is initialized. This callback receives the ReactFlow instance as its argument.

type OnInit = (reactFlowInstance: ReactFlowInstance) => void;
Parameters:
NameTypeDefault
reactFlowInstanceReactFlowInstance<NodeType, EdgeType>
Returns:
void
Last updated on