Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > updateNode

JsPlumbToolkit.updateNode() method#

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


updateNode(node: string | Node | ObjectData, updates?: ObjectData): void;


nodestring | Node | ObjectDataEither a Node, a Node id, or the backing data for a Node.
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.