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

How to clone to specific groups? #1842

Closed
ddenev opened this issue May 31, 2020 · 1 comment · May be fixed by procore/Sortable#1
Closed

How to clone to specific groups? #1842

ddenev opened this issue May 31, 2020 · 1 comment · May be fixed by procore/Sortable#1
Labels
question questions from the community

Comments

@ddenev
Copy link
Contributor

ddenev commented May 31, 2020

Currently the pull option cannot receive both an array of groups to put into and the 'clone' string.

I want to be able to specify both:

  • the 'clone' string to instruct the Sortable that I want to clone the dragged item
  • an array of group names where I want to be able to drag the cloned element into

How can I do this?

@waynevanson
Copy link
Contributor

Clone accepts a function. Checkout the second JSBIN in the docs here https://github.com/SortableJS/Sortable#group-option

This will guide you on the right track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question questions from the community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants