Foblex Flow
Introduction
Getting Started
Containers
Flow Canvas
Node
Node Drag Handle
Connectors
Output Input Outlet
Connection
Connection Create Connection Connection Marker
Extends
Drag and Drop Zoom Background Line Alignment Minimap
Layouts & Behaviors
Dagre Tree ELKJS Tree
Pro Examples
Visual Programming Flow DB Management Flow Call Center Flow Scheme Editor
Foblex Flow
v12.6.4

Input

Selector: [fNodeInput]

The FNodeOutputDirective is a directive that marks an element as an input within a fNode. It manages input-specific behaviours, such as allowing multiple connections, handling disabled state, and determining connectability.

Inputs

  • fInputId: string; The unique identifier for the directive instance. Automatically generated. Default: f-node-input-${uniqueId++}

  • fInputMultiple: boolean; Determines whether the input allows multiple connectionsDefault: Default: true

  • fInputDisabled: boolean; Indicates whether the input is disabled. A disabled input may have a different visual representation and interaction behavior. Default: false

  • fInputConnectableSide: EFConnectableSide; Indicates the side of the output where the connection can be created. Accepts a value from EFConnectableSide enum. Default: EFConnectableSide.AUTO

Properties

  • isConnected: boolean; Indicates whether the input is connected.

Styles

  • .f-component A general class applied to all F components for shared styling.

  • .f-node-input Specific class for styling the node input element.

  • .f-node-input-disabled Applied when the input is disabled.

  • .f-node-input-multiple Applied when the input allows multiple connections.

  • .f-node-input-not-connectable Applied when the input is not connectable.

  • .f-node-input-connected Applied when the input is connected, indicating an active connection.

Usage

<f-flow>
  <f-canvas>
    <div fNode>
      |:|<div fNodeInput></div>|:|
    </div>
  </f-canvas>
</f-flow>

You can also add fNodeInput directive to the element containing the fNode directive

<f-flow>
  <f-canvas>
    |:|<div fNode fNodeInput></div>|:|
  </f-canvas>
</f-flow>

INFO

The f-connection component takes the border-radius of the component into account when connecting

Examples

Node with connectors

This example shows how to use the fNodeOutput directive to create a node with an output element that can be connected to an input.

Node 1
Node 2
Node 1
Node 2
Node 1
Node 2

[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/node-with-connectors/node-with-connectors.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/node-with-connectors/node-with-connectors.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/node-with-connectors/node-with-connectors.component.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss

Different Connectable Side

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.

right
bottom
auto
right
bottom
top

[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connectable-side/connectable-side.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connectable-side/connectable-side.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/connectable-side/connectable-side.component.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss