Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > updatePort

JsPlumbToolkit.updatePort() method#

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

Signature:

updatePort(port: Port | string | ObjectData, updates?: ObjectData): void;

Parameters#

ParameterTypeDescription
portPort | string | ObjectDataEither a Port, a Port id, or the backing data for a Port.
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