Skip to content

851216: update UG documentation for connection Direction property in … #3048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions ej2-asp-core-mvc/diagram/ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,36 @@ The offset property of port is used to align the port based on fractions. 0 repr
## Constraints

The constraints property allows to enable/disable certain behaviors of ports. For more information about port constraints, refer to [`Port Constraints`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Diagrams.PortConstraints.html).

## Specify connection direction to port

The [connectionDirection] property of a port allows users to specify the direction in which a connector should establish a connection. This can be either to the port (incoming) or from the port (outgoing).

```javascript


var port= [{
id: 'port1',
offset: {
x: 0,
y: 0.5
},
//specify the connectionDirection of the Port
connectionDirection:'Right'
} {
id: 'port2',
offset: {
x: 1,
y: 0.5
},
//specify the connectionDirection of the Port
connectionDirection:'Left'
},

];


```


![maxSegmentThumb](images\connectionDirection.png)