Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > updateGroup

JsPlumbToolkit.updateGroup() method#

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

Signature:

updateGroup(group: Group | string | ObjectData, updates?: ObjectData): void;

Parameters#

ParameterTypeDescription
groupGroup | string | ObjectDataEither a Group, a Group id, or the backing data for a 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