javascript - jsplumb: How to create new element by dragging connector -
javascript - jsplumb: How to create new element by dragging connector -
i have been customizing jsplumb flowchart example. currently, can drag , create connectors between elements drag element blank part of screen (i.e. not element) , grab event. know 1 be?
instead of using jsplumb.draggable, utilize jquery draggable
$(".element").draggable({ helper: 'clone', // appendto: 'body', start: function(event, ui) {}, // console.log(event);console.log(ui)}, stop: function(event, ui) {}, // console.log(event);//console.log(ui)}, revert: 'invalid', cursor:'move', opacity: 0.5, });
api docs - http://api.jqueryui.com/draggable/
start
& stop
events fired when drag starts , stops respectively.
javascript jsplumb
Comments
Post a Comment