Using JSPlumb, I want to be able to drag elements into a group, utilise them in the group, then drag them out of the group again. My code creates a group correctly, I can drag item into it, move the group correctly, but the item stays inside the group and I cannot drag it out again ... any thoughts?
(1) DIV setup
<div id="flowchartBox">
<div id="group1" class="groupBox" style="top:10px; left:300px"></div>
<br/>
<div id="shape1" class="shape" style="top:10px; left:5px"></div>
<div id="shape2" class="shape" style="top:10px; left:80px"></div>
<div id="shape3" class="shape" style="top:200px; left:80px"></div>
</div>
(2) Javascript for JSPlumb:
jsPlumb.ready(function() {
jsPlumb.draggable($(".shape"), {containment:"parent"});
jsPlumb.addGroup({
el:group1,
id:"g1",
droppable:true,
// constrain: false,
//revert: false
orphan: true
//prune:true
});
});
as you can see from commented code, I have already tried other options that from the jsplumb community docs, should assist, but they don't seem to be...