Skip to main content

Home > @jsplumbtoolkit/core > 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

ParameterTypeDescription
idstringId of the Port for which to set data.
dataanyData to set for the Port.

Returns:

Port