I am designing a web app in Angular with dragula included in my project. It works just fine for dragging and dropping things in a "bag", but I want a more robust drag and drop functionality.
Is there a way to allow a <div>
that holds draggable items, to let those items be dropped anywhere within the container? Maybe even allowing them to be dropped over top of each other?
<div id="desktop" [dragula]='"first-bag"'>
<div>
<h1>test</h1>
</div>
<div>
<h1>test 2</h1>
</div>
</div>
Say the container div is 500x500px and the inner divs are 50x50px. I want to be able to drag one to the top left corner of the container and the other to the bottom right. I have tried defining the div widths, changing the elements within the bag to no avail.
I will look at other Angular-compatible frameworks as options too.