I have a list of images, where the last image can't be sorted (blocked by using the filter option). But what i can do is take another element, and move it after the filtered element. Is there any way to prevent that?
Would be cool to have a beforeEnd method, where i could check the position and revert it if its not allowed to.
Example: http://jsbin.com/bujonojoqi/1
@philipgiuliani I hope I did what you need: http://jsbin.com/tuyafe/1/edit?html,js,output
Really cool thanks! :) Thats exactly what i needed!
Excellent! Try dev-branch.
I updated it now in my project and it works very well in my use-case! Thanks again :) Amazing work!
This works great for a single list, but can it be done with multi lists?
Seems to be an issue when one list has no more items (except for the static one), and your trying to add a item to it.
So i played around with it for a bit, and it turns out if you return -1 on "onMove" every time it will behave how i want it to.....odd
This solution doesn't seem to work with ng-sortable.
Most helpful comment
@philipgiuliani I hope I did what you need: http://jsbin.com/tuyafe/1/edit?html,js,output