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
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, Bezier, Step)
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Text
Deprecated
Connection Center
Deprecated
Connection Content
New
Custom Connections
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

Adding a Node from the Palette

Description

This guide shows how to add fNode to the f-canvas using the fExternalItem directive. The directive allows placing elements outside the f-canvas and moving them onto it. It supports features like Preview and Placeholder elements to manage the visual representation during interactions. External items can be dragged onto the f-canvas while preserving predefined parameters using the fData attribute.

Directive Features

  • fExternalItem — links an element to the canvas, enabling movement and integration into the overall structure.
  • fPlaceholder and fPreview — provide mechanisms to add placeholder and preview elements.
  • fPreviewMatchSize — synchronizes the size of the fExternalItem with its preview to ensure consistent display.

Example

[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/add-node-from-palette/add-node-from-palette.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/add-node-from-palette/add-node-from-palette.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/add-node-from-palette/add-node-from-palette.component.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