Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > updateVertex

JsPlumbToolkit.updateVertex() method#

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

Signature:

updateVertex(vertex: string | Node | Group | ObjectData, updates?: ObjectData): void;

Parameters#

ParameterTypeDescription
vertexstring | Node | Group | ObjectDataEither a Node/Group, a Node/Group id, or the backing data for a Node/Group.
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.

Returns:

void