Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147307 | Sep 5,2019 02:20 PM UTC | Sep 9,2019 04:19 AM UTC | jQuery | 3 |
![]() |
Tags: ejDiagram |
Kevin
Orcutt
Senior Applications Developer
Phone: (513) 985-7090
Email: korcutt@belcan.com
www.belcan.com
//Initializes diagram control
var diagram = new ej.diagrams.Diagram({
width: '100%', height: '700px',
//Sets the default values of a node
getNodeDefaults: function (obj) {
// Disable dragging for node
obj.constraints = ej.diagrams.NodeConstraints.Default &~ej.diagrams.NodeConstraints.Drag;
},
//Sets the default values of a Connector.
getConnectorDefaults: function (obj) {
// Disable dragging for connector
obj.constraints = ej.diagrams.ConnectorConstraints.Default &~(ej.diagrams.ConnectorConstraints.DragSourceEnd | ej.diagrams.ConnectorConstraints.DragTargetEnd);
},
});
diagram.appendTo('#diagram'); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.