-
Notifications
You must be signed in to change notification settings - Fork 34
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
Complicated relationship #7
Comments
Yes, could be explained better, perhaps with a diagram and flows etc. I would recommend you look at the demo code examples to get a feel for how easy it is to use and setup. The service interacts with the UI and delegates to Drake for DND and to the ModelManager for managing the underlying model for each dnd action. Will improve the docs shortly. |
Is it support for |
Transition group? Well should be support for any Dragula configuration. Please explain. |
@kristianmandrup Here is jsfiddle It's a official We can see some transition animations when click the bottom buttons (Shuffle, Add, Remove), but it immediately change when drag and drog the item without transition. |
Cool ;) So what is the verdict? If it doesn't work as you would expect how can we fix it? What needs to be done? |
Got back online with my laptop. Was unable to do dnd with my phone on your example. I see now that there is no animation when doing dnd. You might get a hint as to why if you enabled logging in the example, although it can be overwhelming. The usual examples use 2 lists: For this we need to look into the ModelManager mutation methods and we see that it acts as an indirection/shield layer so that the elements are not directly linked to the list I think. The ActionManager used for undo/redo might currently work better in this regard. In order for the TimeMachine to work, I had to manually rebuild the new array with push in order for Vue change detection system to kick in! I'm not really that experiences with the internals of Vue2. This was my first attempt at a plugin. Perhaps debugging from here DragHandler insertAt would go a long way... |
The service does use |
I will try to more practice with your advice when I have free time. Thank for your reply! 😃 |
Would be really awesome if you/we could make Transition groups work!!! :) |
After I read the docs in README.md and demo project, it seem to be a powerful dnd lib. But I still not entirely clear the relationship between drake, service and model.
Another problem is whether the
this.$dragula.$service
is not the instanceofDragulaService
? and whyon
is not a method ofthis.$dragula.$service
?I need you help that to provide a further description. Thank you.
The text was updated successfully, but these errors were encountered: