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

Feature: Add support for toggling the drag and drop #1

Merged

Conversation

jordond
Copy link
Contributor

@jordond jordond commented Jan 13, 2024

I'm using compose-dnd in my app, and I needed to be able to toggle whether or not the drag-and-drop was enabled. I couldn't see a built-in solution, so I created a wrapper @Composable that adds this functionality. I decided I might as well open up a PR and see if its something you'd want to add to the library.

Let me know what you think 👍

@MohamedRejeb
Copy link
Owner

Hi,
Sorry for the late reply.
Thanks for your contribution. I think that it can be added as a parameter to the existing DragAndDropContainter instead of creating a new one.

@MohamedRejeb MohamedRejeb changed the base branch from main to feature/toggleable March 23, 2024 22:02
@MohamedRejeb MohamedRejeb merged commit f89ba73 into MohamedRejeb:feature/toggleable Mar 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants