angularjs - Drag and Drop of list element where the only way to drag element is by an inner element -


I have a line of elements that are ordered. I use the UE-sontable because it's angular Play well with I. I want the secret icon (top and bottom arrows) to be the only element that can start pulling its original element. Basically it is that I

  & lt; Ul ui-sortable = "phoneSortableOptions" ng-model = "lead.phoneList" & gt; I am working with & Lt; Li ng- Repeat = "call in lead.phoneList" orderby: 'displayOrder' ">  phone    

The only piece that I want to be dragable

  

I read through the documentation but only one element Any way to make drag Not found.

Also, if I'm not mistaken, then the UI -Sonable Jquery Sortable

  App.directive ('preventDrag', function) () {return {link: function (scope, element, attributes) {element.on ('mousedown', (e) {e.stopPropagation ();}}}}}} );   

I was hoping to set up a library, but it is not very bad.

You can also try

  • Select user: none; // CSS
  • onmousedown = "return false;"
  • ondragstart = "return false;"

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -