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 Handle

Selector: [fDragHandle]

The FDragHandle is a directive that specifies the handle for dragging a node within a flow of elements. It is used in conjunction with the fNode directive to enable dragging functionality.

Styles

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

  • .f-drag-handle Class specific to the drag handle directive, providing styles for the drag handle representation.

Usage

Node with drag handle

We need to add the fDragHandle directive inside fNode to specify the handle for dragging. This can be any element inside the node that will act as the drag handle.

<f-flow |:|fDraggable|:|>
  <f-canvas>
    <div fNode [fNodePosition]="{ x: 100, y: 200 }">
      <div |:|fDragHandle|:|>Node</div>
    </div>
  </f-canvas>
</f-flow>

Disabling Dragging

This code snippet shows how to disable dragging for a node.

<f-flow fDraggable>
  <f-canvas>
    <div fNode |:|[fNodeDraggingDisabled]="true"|:| [fNodePosition]="{ x: 100, y: 200 }">
      <div fDragHandle>Node</div>
    </div>
  </f-canvas>
</f-flow>

Examples

Node with Drag Handle

This example demonstrates how to use the fDragHandle directive to specify the handle for dragging a node.

Drag Handle on the Node
Drag handle inside
Drag handle outside

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