a5hik / ng-sortable

AngularJS Library for Drag and Drop, supports Sortable and Draggable. Supports Touch devices.

Home Page:http://a5hik.github.io/ng-sortable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

restrict drag and drop

umerali523 opened this issue · comments

i have applied drag and drop on items list with ng sortable, i want to restrict drag and drop on some items in list. Drag is restricted with no-drag attribute on the handler item but how to restrict drop or disable sorting of the no-drag items?

Edit the accept listener, in the dragControlListeners.

I edited the accept listener with my custom logic drop is handled now but still that item is sort-able and moved from it's location when i drop my item next to the locked item's position. i want to completely locked that item for example that item should not be moved from it's position where every other items should continue their default behavior. Can you tell me how to implement this behavior?