Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Define a grab zone

Open LeJ84 opened this issue 3 years ago • 1 comments
trafficstars

Hi,

Is there a way to define in the children elements of the Sortable component just a zone to grab the whole element ? The whole element still sortable but you have to grab it on a specific place. I don't know if it's clear.

LeJ84 avatar Mar 25 '22 08:03 LeJ84

new Sortable(this.el, {
            ...,
            dragClass: "drag-item",
            handle: ".grab-zone"
})
<div id="parent-element" class="drag-item">

<div id="child-element" class="grab-zone">
Grab here
</div>

</div>

darkblueorange avatar Oct 02 '24 12:10 darkblueorange