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

Allow for runtime management of drop zones #226

Open
Cyara-Andrew-Watson opened this issue Jul 1, 2024 · 1 comment
Open

Allow for runtime management of drop zones #226

Cyara-Andrew-Watson opened this issue Jul 1, 2024 · 1 comment
Assignees
Labels
feature request A new feature to be added to the tool

Comments

@Cyara-Andrew-Watson
Copy link

At the moment, it would appear that the only way to specify drop-zones for drag-select, is to register them through the settings - either at startup, or using the setSettings method.

In react, it is awkward to use this interface as we need to pass a random reference array, while the management of the selectables is much easier - being able to do it inside each component as it is registered (one at a time).

What I would like is a set of methods that allows us to get/add/remove drop target elements in a similar way that we can manage selectables.

As it is, I may bypass the drop-zone feature of drag-select altogether, and just implement my own targeting (drag-over) functionality.

@ThibaultJanBeyer
Copy link
Owner

Hi @Cyara-Andrew-Watson thanks for this feature request, I believe think this can be added, I'll look into it 👀

@ThibaultJanBeyer ThibaultJanBeyer self-assigned this Jul 14, 2024
@ThibaultJanBeyer ThibaultJanBeyer added the feature request A new feature to be added to the tool label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new feature to be added to the tool
Projects
None yet
Development

No branches or pull requests

2 participants