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

Drag and Drop

Selector: [fDraggable]

The FDraggableDirective enhances a component, typically a flow f-flow, with draggable functionality. It allows elements within the flow to be moved and managed interactively.

Inputs

  • fDraggableDisabled: boolean; Determines whether the draggable functionality is disabled. Default: `false

Outputs

  • fSelectionChange: EventEmitter<FSelectionChangeEvent>; Emits an event when the selection within the flow changes.
  • fCreateNode: EventEmitter<FCreateNodeEvent>; Emits an event when an external item, marked with the FExternalItemDirective, is dragged into the flow, allowing for node creation.

  • fReassignConnection: EventEmitter<FReassignConnectionEvent>; Emits an event when a connection is reassigned to a different FNodeInputDirective.

  • fCreateConnection: EventEmitter<FCreateConnectionEvent>; Emits an event when a new connection is created within the flow. To do this you need to pull a connection from fOutput to fInput.

Properties

  • isDragStarted: boolean; Indicates whether a drag operation has started within the flow. This property is used to track the state of drag interactions.

Styles

  • .f-draggable Applied to the host element to indicate it is draggable.

  • .f-drag-disabled Applied when the draggable functionality is disabled.

  • .f-drag-started Applied when a drag operation begins.

Usage

<f-flow |:|fDraggable|:|></f-flow>