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
Sometimes you want to add multiple handles to the same side. In that case you often end up having two handles on top of each other instead of next to each other.
107
+
Handles will not layout themselves automatically, so you need to manually adjust their position.
108
+
109
+
You can do so using CSS styles.
110
+
For example, you can set the `top` and `bottom` properties to position the handles on the top and bottom of the right side of the node.
In Vue Flow 1.x, there's no need to manually invoke `updateNodeInternals` when dynamically adding handles.
130
+
Upon mounting, handles will automatically attempt to attach to the node.
131
+
However, if for any reason this isn't happening as expected, you can stick to the guideline provided below to enforce Vue Flow to update the node internals.
132
+
:::
133
+
134
+
At times, you may need to modify handle positions dynamically or programmatically add new handles to a node. In this scenario, the [`updateNodeInternals`](/typedocs/types/UpdateNodeInternals) method found in Vue Flow's API comes in handy.
135
+
136
+
Invoking this method is vital when dealing with dynamic handles. If not, the node might fail to recognize these new handles, resulting in misaligned edges.
137
+
138
+
The `updateNodeInternals` function can be deployed in one of two ways:
139
+
140
+
-**Using the store action:** This approach allows you to update several nodes at once by passing their IDs into the method.
141
+
-**Emitting the `updateNodeInternals` event from your customized node component:** This doesn't require any parameters to be passed.
Copy file name to clipboardExpand all lines: docs/src/guide/node.md
-41Lines changed: 0 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -946,44 +946,3 @@ const inputValue = ref('')
946
946
@applybg-primaryroundedp-4;
947
947
}
948
948
</style>
949
-
950
-
## Working with Dynamic Handle Positions / Adding Handles Dynamically
951
-
952
-
::: tip
953
-
In Vue Flow 1.x, there's no need to manually invoke `updateNodeInternals` when dynamically adding handles.
954
-
Upon mounting, handles will automatically attempt to attach to the node.
955
-
However, if for any reason this isn't happening as expected, you can stick to the guideline provided below to enforce Vue Flow to update the node internals.
956
-
:::
957
-
958
-
At times, you may need to modify handle positions dynamically or programmatically add new handles to a node. In this scenario, the [`updateNodeInternals`](/typedocs/types/UpdateNodeInternals) method found in Vue Flow's API comes in handy.
959
-
960
-
Invoking this method is vital when dealing with dynamic handles. If not, the node might fail to recognize these new handles, resulting in misaligned edges.
961
-
962
-
The `updateNodeInternals` function can be deployed in one of two ways:
963
-
964
-
-**Using the store action:** This approach allows you to update several nodes at once by passing their IDs into the method.
965
-
-**Emitting the `updateNodeInternals` event from your customized node component:** This doesn't require any parameters to be passed.
0 commit comments