Selector: [fNodeOutput]
The FNodeOutputDirective is a directive that marks an element as an output within a fNode. It manages the output-related behaviors, such as connection status and disabled state.
fOutputId: string;
The unique identifier for the directive instance. Automatically generated. Default: f-node-output-${uniqueId++}
fOutputMultiple: boolean;
Specifies whether the output can have multiple connections. Default: false
fOutputDisabled: boolean;
Indicates whether the output is disabled. A disabled output may have a different visual representation and interaction behaviour. Default: false
fOutputConnectableSide: EFConnectableSide;
Indicates the side of the output where the connection can be created. Accepts a value from EFConnectableSide enum. Default: EFConnectableSide.AUTO
isSelfConnectable: boolean;
Indicates whether the output can be connected to inputs within the same node. Default: true
isConnected: boolean;
Indicates whether the output is connected..f-component
A general class applied to all F components for shared styling.
.f-node-output
Specific class for styling the node output element.
.f-node-output-disabled
Applied when the output is disabled.
.f-node-output-multiple
Applied when the output allows multiple connections.
.f-node-output-not-connectable
Applied when the output is not connectable.
.f-node-output-connected
Applied when the output is connected, indicating an active connection.
.f-node-output-self-connectable
Applied when the output can be connected to inputs within the same node.
This code snippet shows a basic example of a node with an output element. This output can be connected to an input.
<f-flow>
<f-canvas>
<div fNode>
|:|<div fNodeOutput></div>|:|
</div>
</f-canvas>
</f-flow>
This code snippet shows how to disable an output element.
<f-flow>
<f-canvas>
<div fNode>
<div fNodeOutput |:|[fOutputDisabled]="true"|:|></div>
</div>
</f-canvas>
</f-flow>
This code snippet shows how to specify the side of the output that can be connected to. Valid values are top, right, bottom, left, and auto from EFConnectableSide enum.
<f-flow>
<f-canvas>
<div fNode>
<div fNodeOutput |:|[fOutputConnectableSide]="left"|:|></div>
</div>
</f-canvas>
</f-flow>
This example shows how to use the fNodeOutput directive to create a node with an output element that can be connected to an input.
Example of how to use the fOutputConnectableSide and fInputConnectableSide directives to specify the side of the node that can be connected to. Valid values are top, right, bottom, left, and auto from EFConnectableSide enum.