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

drag and drop in multiple component #7

Closed
therahuls1ngh opened this issue Jan 17, 2017 · 4 comments
Closed

drag and drop in multiple component #7

therahuls1ngh opened this issue Jan 17, 2017 · 4 comments
Assignees
Milestone

Comments

@therahuls1ngh
Copy link

I have two component for example
one.ts
tasks[]
tasks ={"A","B"}
two.ts
tasks[]
when I drop one element i.e A from one.ts to two.ts it should remove from one.ts and vice versa.

@ObaidUrRehman
Copy link
Owner

ObaidUrRehman commented Feb 24, 2017

@therahuls1ngh you will have to manually remove/add the items. You will also need to apply both droppable and draggable directives on elements. This is something that is currently buggy. See #13

Once this is fixed I will try to setup a plunkr demo.

@ObaidUrRehman
Copy link
Owner

ObaidUrRehman commented Mar 7, 2017

@therahuls1ngh Please see the updated plunkr demo. I have added a new example where you can drag and drop items between 2 list.

http://plnkr.co/edit/ki2TgX?p=preview

@vkadi-tcs
Copy link

Above plnkr link is not loading properly,
Can any one tell me how to implement multiple selection drag and drop using "ng2-drag-drop"

@ObaidUrRehman
Copy link
Owner

@vkadi-tcs that's an old plunker. See the latest one: http://plnkr.co/edit/2bjGgzWnbFrciEiCKLew?p=preview
Multiple selection drag drop feature is under consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants