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
Parameter | Type | Description |
---|---|---|
port | Port | string | ObjectData | Either a Port, a Port id, or the backing data for a Port. |
updates | ObjectData | An 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