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
| Parameter | Type | Description |
|---|---|---|
| type | string | |
| data | ObjectData |
Returns:
void