feat(keyhandler): add onNodeRemove callback

This commit is contained in:
moklick
2019-07-24 16:44:26 +02:00
parent 7b32ee660c
commit 4be80dd985
8 changed files with 166 additions and 43 deletions
+1
View File
@@ -86,6 +86,7 @@ class App extends PureComponent {
<Graph
elements={this.state.elements}
onNodeClick={node => console.log(node)}
onNodeRemove={nodeIds => console.log('remove', nodeIds)}
style={{ width: '100%', height: '100%' }}
onLoad={graphInstance => this.onLoad(graphInstance)}
onChange={(elements) => this.onChange(elements)}