I am looking for drag and drop with links like below gif. I have also checked this ::
JavaScript
x
12
12
1
UI5Object.extend("DraggableDelegate", {
2
constructor: function (oControl) {
3
this.oControl = oControl;
4
},
5
6
onAfterRendering: function () {
7
this.oControl.$().draggable({
8
cancel: false
9
});
10
}
11
});
12
http://jsbin.com/loqeguridu/edit?html,output but linking the elements is not possible.
Is it possible to have drag and drop with links in SAP UI5 ?
Advertisement
Answer
I found something useful for the same.SAP UI 5 uses D3.js which has drag and drop features.
JavaScript
1
14
14
1
<html>
2
3
<head>
4
<meta charset="utf-8">
5
<title>Directed Graph Editor</title>
6
<link rel="stylesheet" href="app.css">
7
</head>
8
9
<body></body>
10
<script src="http://d3js.org/d3.v3.min.js"></script>
11
<script src="app.js"></script>
12
13
</html>
14