Hi
Syukur,
Thanks
for using Syncfusion products.
We are
glad to inform you that we have created a simple sample to represent how to
perform add and delete a node in Diagram JS. Please see the code snippet below.
1.Delete
a node.
diagram.remove();
2.Add a node.
var node = { name:
ej.Diagram.Util.randomId(), width: 50, height: 50, offsetX: 400, offsetY: 200,
type: "node", shape: { type: "rectangle" } };
diagram.add(ej.Diagram.Node(node));
Please let
me know if any concerns.
Regards,
Shyam G
Attachment:
WebApplication6_(3)_cb654298.zip