Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

Is there anyway to add more action when the node/link is deleted (by pressing 'del' button)? #384

Closed JanOfOlympus closed 7 months ago

JanOfOlympus commented 7 months ago

I want to add some more action when node/link is deleted and or change

I notice that when I press 'del' button on the selected node, the node is deleted from the canvas. But I don't know where does this action triggered and can we know that it's been triggered so I can add some more action there. :)

Thank so much :)

zHaytam commented 7 months ago

Hello, please check the Diagram.Nodes.Removed and Diagram.Links.Removed events.

zHaytam commented 7 months ago

You also have Constraints in the options where you can decide whether to delete something or not.
For now I will close this, feel free to re-open if you have any more questions!