Skip to content

Commit 74bc56a

Browse files
docs: finish onNodeStatusChange docs
1 parent 7290627 commit 74bc56a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.en-US.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ npm install react-monitor-dag
5252
| onContextmenuEdge | Right-Click Edge Event | <font color="c41d7f">(edge) => void</font> | - |
5353
| onContextmenuGroup | Right-Click Group Event | <font color="c41d7f">(data) => void</font> |
5454
| onChangePage | Single-Click Group Pagination Event | <font color="c41d7f">(data) => void</font> |
55-
55+
| onNodeStatusChange | The canvas has a callback after the node state changes | <font color="c41d7f">(data) => void</font> |
5656

5757
<br>
5858
### <a name='menu-type'></a><b>menu</b>
@@ -200,6 +200,7 @@ import 'react-monitor-dag/dist/index.css';
200200
onContextmenuEdge={(edge) => {}} // Right Click Edge Event
201201
onContextmenuGroup={(data) => {}} // Right Click Group Event
202202
onChangePage={(data) => {}} // Single Click Group Pagination Event
203+
onNodeStatusChange={(data) => {}} // The canvas has a callback after the node state changes
203204
polling={{ // support polling
204205
enable: true,
205206
interval: 5000, // interval of polling
@@ -290,6 +291,7 @@ interface props {
290291
onContextmenuEdge ? (edge: any) : void, // Right-Click Edge Event
291292
onContextmenuGroup?(edge: any): void, // Right-Click Group Event
292293
onChangePage?(data:any): void, // Single-Click Group Pagination Event
294+
onNodeStatusChange?(data: any): void // The canvas has a callback after the node state changes
293295
}
294296
```
295297

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ npm install react-monitor-dag
5050
| onContextmenuEdge | 右键线段事件 | <font color="c41d7f">(edge) => void</font> | - |
5151
| onContextmenuGroup | 右键group事件 | <font color="c41d7f">(edge) => void</font> | - |
5252
| onChangePage | 单击group分页事件 | <font color="c41d7f">(edge) => void</font> | - |
53+
| onNodeStatusChange | 画布有节点状态变化后的回调 | <font color="c41d7f">(data) => void</font> | - |
5354

5455
<br>
5556

@@ -197,8 +198,9 @@ import 'react-monitor-dag/dist/index.css';
197198
onDblClickNode={(node) => {}} // Double Click Node Event
198199
onClickEdge={(edge) => {}} // Single Click Edge Event
199200
onContextmenuEdge={(edge) => {}} // Right Click Edge Event
200-
onContextmenuGroup={(data) => {}} // Right Click Group Event
201+
onContextmenuGroup={(data) => {}} // Right Click Group Event
201202
onChangePage={(data) => {}} // Single Click Group Pagination Event
203+
onNodeStatusChange={(data) => {}} // the canvas has a callback after the node state changes
202204
polling={{ // support polling
203205
enable: true,
204206
interval: 5000, // interval of polling
@@ -289,6 +291,7 @@ interface props {
289291
onContextmenuEdge ? (edge: any) : void, // 右键线段事件
290292
onContextmenuGroup?(edge: any): void, // 右键group事件
291293
onChangePage?(data:any): void, // 单击分页事件&搜索
294+
onNodeStatusChange?(data: any): void // 画布有节点状态变化后的回调
292295
}
293296
```
294297

0 commit comments

Comments
 (0)