Home > @jsplumbtoolkit/browser-ui > Node > setPort
Node.setPort() method
Sets the underlying data for the Port with the given id. If the Port does not yet exist, it is created.
Signature:
setPort(id: string, data?: any): Port;
Parameters
Parameter | Type | Description |
---|---|---|
id | string | Id of the Port for which to set data. |
data | any | Data to set for the Port. |
Returns: