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
Parameter | Type | Description |
---|---|---|
vertex | string | Node | Group | Node/Group or id of the Node/Group to add the Port to. |
data | ObjectData | Data for the Port. |
doNotFireEvent | boolean |
Returns:
The port that was added.