Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Node Selection
Resize Handle
Rotate Handle
Grouping
Updated
Drag to Group
Updated
Stress Test
Stress Test with Connections
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connection Rules
New
Connectable Side
Updated
Connections
Drag to Connect
Drag to Reassign
Updated
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Auto Snap
Connection Types (Straight, Segment, Bezier, Adaptive Curve)
Updated
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Text
Deprecated
Connection Center
Deprecated
Connection Content
New
Custom Connections
Connection Connectable Side
New
Extensions
Add Node from Palette
Selection Area
Help in Positioning
Grid System
Minimap
Zoom
Background
Advanced
Cut/Copy/Paste
New
Undo/Redo
Undo/Redo V2
New
Dagre Layout (Directed Graph)
ELKJS Layout (Directed Graph)
Drag Start/End Events
Custom Event Triggers
Pro Examples
Visual Programming
DB Management
UML Diagram
Tournament Bracket
Foblex Flow

Connectable Side

Description

This example demonstrates how to control which side of a connector can be used for connections. Each connector can have a connectable side — LEFT, RIGHT, TOP, or BOTTOM, or you can let the system automatically determine the most appropriate side (CALCULATE).

It’s important to note that a connector can have only one active side at a time. This means that if there are multiple incoming or outgoing connections, they will all enter or leave from the same side of the connector.

The demo highlights two modes:

  • Manual mode – You can switch the output and input sides of the nodes manually. This allows you to see how connections are drawn when sides are fixed.
  • Calculated mode – The side is set to CALCULATE, meaning it is determined dynamically based on the relative positions of connected nodes.

Additionally, the library also defines connection sides. If a connection side is specified, it takes precedence over the connector’s side. You can find more details about connection sides here

This approach gives you fine-grained control over connection behavior while still supporting automatic side calculation for dynamic layouts.

Example

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

Edit this page on GitHub
In this article