Deletable Nodes
Svelvet
allows for users to enable an optional delete feature in their diagrams.
To access this feature, simply add the deleteNodes
prop to your Svelvet
application.
If you only want the delete feature for specific nodes, add the key delete
to any node and set the value to true
.
The edit modal feature also has the ability to delete nodes if you do not want the red delete button on your nodes.
Implementing Deletable Nodes
See the Code Sandbox below to see implementation!