Skip to Content

OnInit

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