Closed alejandroVaron closed 3 years ago
These are the methods:
Hi! @alejandroVaron
I think he has the events reversed
View demo code:
<div class="drag-drawflow" draggable="true" ondragstart="drag(event)" data-node="dbclick">
<i class="fas fa-mouse"></i><span> DBClick!</span>
</div>
And th drawflow div:
<div id="drawflow" ondrop="drop(event)" ondragover="allowDrop(event)"> .... </div>
In your code you don't have the event drop in drawflow.
Check out the demo.
I found a examples create for comunity: https://github.com/stirante/controller-builder/blob/3b365ff2328cf419c52d6c4d6321c4635bbaa764/src/pages/Drawflow.vue
And
Thanks.
i'm new to vue,
I was trying to make the div be dragged to the drawflow as in the example, but I can't do it
I was trying to do it by seeing if the mouse enters or leaves the div, but I think it is not the correct way.
Thanks.