Home > @jsplumbtoolkit/core > JsPlumbToolkit > getPortId
JsPlumbToolkit.getPortId() method
Gets the id of the Port represented by the given arguments. If this is a JS object, we extract the id using the current portIdFunction. Otherwise we just pass it back as-is.
Signature:
getPortId(port: ObjectData): string;
Parameters
Parameter | Type | Description |
---|---|---|
port | ObjectData |
Returns:
string
Port's id, if we could resolve it, otherwise the object we were given.