Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Node Selection
Resize Handle
Updated
Grouping
Drag to Group
Stress Test
Stress Test with Connections
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connectability Check
New
Connectable Side
Connections
Drag to Connect
Drag to Reassign
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Updated
Auto Snap
Updated
Connection Types
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Text
New
Connection Center
New
Custom Connections
Extensions
Add Node from Palette
New
Selection Area
Help in Positioning
Grid System
Updated
Minimap
Zoom
Updated
Background
Advanced
Undo/Redo
New
Dagre Layout
ELKJS Layout
Drag Start/End Events
New
Custom Event Triggers
New
Pro Examples
Visual Programming
DB Management
UML Diagram
Tournament Bracket
Foblex Flow
DocsExamples

Connection Center

Description

This page explains the fConnectionCenter directive in Foblex Flow for Angular. The fConnectionCenter directive allows you to insert any custom content inside a block, which will be positioned relative to the center of the connection line. This is useful for adding labels, icons, or other elements that need to be dynamically displayed at the center of a connection. The directive provides flexible styling and positioning, allowing you to fully customize the appearance and behavior of the centered content.

Example

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