jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

Modify Functions according to the API responses. #766

Open itsrajatcodehub opened 9 months ago

itsrajatcodehub commented 9 months ago

I want to delete the node only on the API response of 200.

As I right-click on the node, a cross icon appears and as I click on the cross icon, connection gets break. I want to hit the API on the right click on the node, and if the API response is 200 then this function should execute, otherwise not!

registerEvents(editor: any) { editor.on('nodeRemoved', (id) => { console.log('Node removed ' + id); } });

So, please provide the function which calls on the right click of the node and a cross button appears and how can I do this in Angular. and the same thing I want to do with connection line

image image

jerosoler commented 9 months ago

View