You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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](f-node-directive) directive to enable dragging functionality.
6
+
7
+
## Styles
8
+
-`.f-component` A general class applied to all F components for shared styling.
9
+
10
+
-`.f-drag-handle` Class specific to the drag handle directive, providing styles for the drag handle representation.
11
+
12
+
## Usage
13
+
14
+
#### Node with drag handle
15
+
16
+
We need to add the **fDragHandle** directive inside [fNode](f-node-directive) to specify the handle for dragging.
17
+
This can be any element inside the node that will act as the drag handle.
18
+
19
+
```html
20
+
<f-flow|:|fDraggable|:|>
21
+
<f-canvas>
22
+
<divfNode[fNodePosition]="{ x: 100, y: 200 }">
23
+
<div|:|fDragHandle|:|>Node</div>
24
+
</div>
25
+
</f-canvas>
26
+
</f-flow>
27
+
```
28
+
29
+
#### Disabling Dragging
30
+
31
+
This code snippet shows how to disable dragging for a node.
0 commit comments