Jquery Sortables - Are there different ways to move a piece as per an image?

Asked

Viewed 20 times

0

In the original example the user can click on any part of the < div content > (or componently) and move it,

https://jqueryui.com/sortable/:

<div id="sortable" >
   <div> conteudo 1 </div>
   <div> conteudo 2 </div>
   <div> conteudo 3 </div>
   <div> conteudo 4 </div>
</div >

But I would like to have only a small button (image for example), and only it be "clickable" and so move the component, for example

<div id="sortable" >
   <div> <img src=move.gif> conteudo  </div>
   <div> <img src=move.gif> conteudo  </div>
   <div> <img src=move.gif> conteudo  </div>
   <div> <img src=move.gif> conteudo  </div>
</div >

Is that possible? Someone has an example?

thank you!

  • I didn’t quite understand what to do. You want only one of the elements to be able to do the drag & drop?

  • edited the question! hope to have become more legible...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.