Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > addPort

JsPlumbToolkit.addPort() method#

Adds a Port from existing data to some Node/Group. This is distinct from addNewPort, because in this case the data for the Port already exists.

Signature:

addPort(vertex: string | Node | Group, data: ObjectData, doNotFireEvent?: boolean): Port;

Parameters#

ParameterTypeDescription
vertexstring | Node | GroupNode/Group or id of the Node/Group to add the Port to.
dataObjectDataData for the Port.
doNotFireEventboolean

Returns:

Port

The port that was added.