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

drop from outside source #8

Open
agrothe opened this issue Jul 8, 2018 · 2 comments
Open

drop from outside source #8

agrothe opened this issue Jul 8, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@agrothe
Copy link

agrothe commented Jul 8, 2018

Question: am I able to apply some classes or data to an element to allow dragging into the tree from an outside source?

I can add elements via selecting a node then then splice/push on the data array, but not having any luck reading the drop event as it's probably set to cancel default and stop propagation?

Maybe expose a drop event with the index of the node dropped onto?

@holiber holiber self-assigned this Jul 9, 2018
@holiber holiber added the question Further information is requested label Jul 9, 2018
@holiber
Copy link
Owner

holiber commented Jul 11, 2018

That looks like a good proposal. I'm going to create a PR for that.

@holiber holiber added the enhancement New feature or request label Jul 11, 2018
@holiber
Copy link
Owner

holiber commented Jul 17, 2018

I exposed externaldrop event. I need to test it more before release a new version but you can try out demo/externalaldrag.html example from the master branch.

SamuelIrungu pushed a commit to SamuelIrungu/vue-tree-panel that referenced this issue Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants