Skip to content

Commit 0788fb2

Browse files
851216: update UG documentation for connection Direction property in ASP CORE MVC
1 parent df55fba commit 0788fb2

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Loading

ej2-asp-core-mvc/diagram/ports.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,36 @@ The offset property of port is used to align the port based on fractions. 0 repr
237237
## Constraints
238238

239239
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).
240+
241+
## Specify connection direction to port
242+
243+
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).
244+
245+
```javascript
246+
247+
248+
var port= [{
249+
id: 'port1',
250+
offset: {
251+
x: 0,
252+
y: 0.5
253+
},
254+
//specify the connectionDirection of the Port
255+
connectionDirection:'Right'
256+
} {
257+
id: 'port2',
258+
offset: {
259+
x: 1,
260+
y: 0.5
261+
},
262+
//specify the connectionDirection of the Port
263+
connectionDirection:'Left'
264+
},
265+
266+
];
267+
268+
269+
```
270+
271+
272+
![maxSegmentThumb](images\connectionDirection.png)

0 commit comments

Comments
 (0)