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

Prevent drop on specific nodes and allow drop on specific nodes #165

Open
ParsaJR opened this issue Jul 22, 2024 · 0 comments
Open

Prevent drop on specific nodes and allow drop on specific nodes #165

ParsaJR opened this issue Jul 22, 2024 · 0 comments

Comments

@ParsaJR
Copy link

ParsaJR commented Jul 22, 2024

Hello. I want to implement a functionality in such a way that prevent some draggable nodes to drop in some places & vice versa. Is this controllable in this module? how? With 'on-move','on-change'...etc events I didn't understand how I can control issues like this... returning false in OnMove function does a lot of job for this kind of logic, but it's not working. i don't know why.
If it helps in understanding the problem , My scenario is like this : 'There is 4 number which the user places mathematical symbols between the numbers. And obviously , mathematical symbols should not be placed after or before the whole expression and etc'
What I have implemented now is this 👇
image

I don't know how to implement such a logic in this module (vue draggable plus). any ideas?

@ParsaJR ParsaJR changed the title Prevent drop on specific node and allow drop on specific node Prevent drop on specific nodes and allow drop on specific nodes Jul 22, 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

No branches or pull requests

1 participant