Skip to main content

Home > @jsplumbtoolkit/browser-ui-angular > BaseNodeComponent > addNewPort

BaseNodeComponent.addNewPort() method

Instructs the Toolkit to add a new port with the given data to the vertex this component represents.

Signature:

addNewPort(type: string, data: ObjectData): void;

Parameters

ParameterTypeDescription
typestring
dataObjectData

Returns:

void