-
Notifications
You must be signed in to change notification settings - Fork 370
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
Drag boundaries #70
Comments
No this isn't possible at the moment. You could provide an onDrop method and see if the mouse is out of the boundary and not allow the drop if so. I think that's the only approach at the moment. |
Thanks for the reply. I'm using an onDrop to update various values within the row, but I've not been able to get it to stop the drop when its above the area.. how do I get it to stop dropping and what happens to the row ? does it return to it's original position ? Thanks |
in my onDrop I've added:
This isn't working. I can see row.id = 3 and I've used insertAfter with in other pages, so I'm stuck as to why this doesn't work.. Any ideas ? |
You're right. I've just had a play and it isn't possible to prevent dropping in Another approach might be to add the If that's no good, then I suggest you put a breakpoint on the Hope this helps! |
Thanks I seem to have go this working. All my rows have unique ID's, So I'm finding my top rows ID, and the returning false if the ID of the currentRow === the top ID. |
Hi
Is it possible to set a drag boundary ?
So you can't drag past that boundary?
Thanks
The text was updated successfully, but these errors were encountered: