-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
add class on dragover #460
Comments
+1 This would be really handy! |
You can do this using the onMove event handler.
only problem is that there is nothing currently tracking the item you hovered over before hovering over this item, since the evt.from is the original list you are dragging from. I'm working on adding an evt.previous to do just this, but the dev branch has at least one issue that is slowing me down some. Note: The onMove handler is called on the sortable list the item is dragged from not the list/lists being hovered or dropped on. |
+1 This would be analogous to jQuery-UI-sortable's "over" and "out" events: http://api.jqueryui.com/sortable/#event-over |
+1 from me, this would be awesome, I'm dragging from one list to a sortable one and would like to be able to remove some classes from the dragged element when its hovering in the drop area! Plugin is awesome by the way! |
I created a pull request for this: #991 |
+1 |
Here is solution: #1468 |
Closing because this has been answered. |
Hello, in my case i'm using vue draggable, so i can do :
|
..if that's the right event, I'd like to add a class to the list an item is being added to
something like
.sortable-there-a-thing-hovering-over-me
The text was updated successfully, but these errors were encountered: