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!
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
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