I want to remove all connected edges to the source from parent, so is there any function that can remove all edges connected from parent to child referring by the cell. How to get parent cell from child cell in mxgraph. I am trying to achieve drag and drop using connectors and am i correct?
mxConnectionHandler.prototype.connect = function(source, target, evt, dropTarget) < // First I'll connect the target and source edges // Later I'll remove all connected edges from parent to source >
source.parent.getValue('value') is undefined now. I need parent references so that it helps in saving to database as well. I can see this: mxCell.prototype.getParent = function() from documentation, but how to use this? Please demonstrate with a small example. Tried using cell.getParent() Also: graph.model.getParent(cell) But it returns: mxCell