Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restrict drag and drop #396

Open
umerali523 opened this issue Jan 15, 2018 · 2 comments
Open

restrict drag and drop #396

umerali523 opened this issue Jan 15, 2018 · 2 comments

Comments

@umerali523
Copy link

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?

@coyotte508
Copy link

Edit the accept listener, in the dragControlListeners.

@umerali523
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants