Skip to content

Commit 8c0f6a2

Browse files
Merge branch 'ES-982382-NodeDragRes' of https://github.com/syncfusion-content/blazor-docs into ES-982382-NodeDragRes
2 parents 6b9a2dd + 03d85e2 commit 8c0f6a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

blazor/diagram/constraints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The [Constraints](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagra
140140
|[Resize](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.NodeConstraints.html#Syncfusion_Blazor_Diagram_NodeConstraints_Resize)|Enables or Disables the expansion or compression of a node.|
141141
|[Inherit](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.NodeConstraints.html#Syncfusion_Blazor_Diagram_NodeConstraints_Inherit)|Enables the node to inherit the interaction option from the parent object.|
142142
|[RoutingObstacle](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.NodeConstraints.html#Syncfusion_Blazor_Diagram_NodeConstraints_RoutingObstacle)|Enables or disables the node to be treated as obstacle while in routing.|
143-
|[AllowDragWithinSwimlane](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.NodeConstraints.html#Syncfusion_Blazor_Diagram_NodeConstraints_AllowDragWithinSwimlane)|Restricts the node's movement strictly within the boundaries of its assigned swimlane.|
143+
|[AllowDragWithinSwimlane](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.NodeConstraints.html#Syncfusion_Blazor_Diagram_NodeConstraints_AllowDragWithinSwimlane)|Restricts a nodes movement strictly within the swimlane boundaries.|
144144
|[Default](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.NodeConstraints.html#Syncfusion_Blazor_Diagram_NodeConstraints_Default)|Enables all default constraints for the node.|
145145

146146
The following example shows how to disable the `Rotate` constraint from the default node constraints.

blazor/diagram/swimlane/lane/interaction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ The following image shows children interaction in lane.
4848

4949
![Lane Children Interaction](../Swimlane-images/Child_Interaction.gif)
5050

51-
## How to restrict nodes from being dragged or repositioned outside their assigned swimlane
51+
## How to restrict nodes from being dragged outside their swimlane
5252

5353
By default, nodes in a swimlane can be moved freely both within and outside the swimlane boundaries. Enabling the **NodeConstraints.AllowDragWithinSwimlane** option on the node’s [Constraints](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Node.html#Syncfusion_Blazor_Diagram_Node_Constraints) property prevents the node from moving outside the swimlane. When a node is dragged beyond its boundaries, a 'not allowed' cursor appears to indicate the restriction.
5454

55-
To enforce this restriction for all child nodes within swimlanes, set the constraint during node initialization in the [NodeCreating](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_NodeCreating) event. The constraint can also be enabled or disabled dynamically at runtime, for example, via a button click.
55+
To enforce this restriction for all child nodes within swimlanes, set the constraint during node initialization in the [NodeCreating](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_NodeCreating) event.
5656

5757
The following example demonstrates a node with the text "AllowDrag Within Swimlane" restricted to its swimlane boundaries:
5858

@@ -163,7 +163,7 @@ The following example demonstrates a node with the text "AllowDrag Within Swimla
163163
164164
```
165165

166-
The following example demonstrates enabling or disabling `AllowDragWithinSwimlane` dynamically at runtime by a button click.
166+
The following example demonstrates that a constraint can also be enabled or disabled at runtime, for example, via a button click.
167167

168168
```cshtml
169169
@using Syncfusion.Blazor.Diagram

0 commit comments

Comments
 (0)