Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > updateEdge

JsPlumbToolkit.updateEdge() method#

Updates the given Edge, notifying any Renderers to do a redraw. If autoSave is set, this method will cause the dataset to be saved.


updateEdge(obj: Edge | string, updates?: ObjectData): void;


objEdge | stringEither an Edge, an Edge id, or the backing data for an Edge.
updatesObjectDataAn object with path->value pairs. Path can be in dotted notation. You do not actually have to supply this, although in most cases you will want to. But there are edge cases in which you might simply wish to kick off a repaint.