-
Notifications
You must be signed in to change notification settings - Fork 3
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
Is it possible to implement item dragging as shown in the image? #218
Comments
Unfortunately, this is not possible, if you mean reordering of grid items that span across different columns or rows. Grid layout supports only items with different heights for now, but it doesn't mean that they span across different rows. I may consider adding support for this in the future but I don't have an idea how reordering could work in this case if you try to swap an item occupying one column with an item that occupies 2 columns. Can you maybe describe me how you see that? Btw, use the Discussions tab for questions and feature request instead of issues. |
@MatiPl01 Thank you for your response! Here’s how I imagine the behavior: If a 1-column item is dragged into a 2-column space, it could either:
I saw a similar approach in the react-native-drag-sort library, but it has bad animation, optimization and many bugs P.S. Apologies for using Issues instead of Discussions — I’ll repost this there if needed. |
You don't have to move this question to discussions. I will not close the issue until we finish talking here. I just wanted to let you know that discussions are a better place for things like that. Also thank you for letting me know about this library. I saw similar solutions but never came across this one. You would likely want to create layout that in this library is called I know that this is not ideal so I would likely implement some more developer friendly solution for this case in the future. For now, I am focusing on adding the web support. I may try implementing this grid layout with column spanning next. |
Hello! The library looks fantastic, but I wanted to ask if it is possible to implement item dragging functionality similar to the one shown in the attached image.
The text was updated successfully, but these errors were encountered: