Closed BoLin6 closed 3 years ago
You can use the "SelectionDeleted"
Diagram Event:
https://gojs.net/latest/intro/events.html#SelectionDeleted
For example:
myDiagram.addDiagramListener("SelectionDeleted", function(e) {
e.subject.each(function(part) {
// do something with each deleted Part (Node or Link)
});
});
Do not use this issue tracker for support. Use the Forum
this.myDiagram.commandHandler.deleteSelection = function () { to do something } This method has no callback parameters and does not know which connection line is currently deleted