Sortable: MultiDrag : Select all from button

Created on 11 Apr 2019  路  3Comments  路  Source: SortableJS/Sortable

Multi drag is working fine when items are selected by clicking, but when trying to add class from code doesn't work. Is there any work around ?

https://jsbin.com/divefovuja/1/edit?html,css,js,console,output

This will help a lot where I have 50 elements and I want to drop all of them in another list.

All 3 comments

@Soneshdabhi Unfortunately there is no workaround as of now. But I will certainly include a method for this in a later commit.

It will be also great if there was a way/hack to de-select items once they are dropped in to target container.

@Soneshdabhi You can now use Sortable.utils.select(element) and Sortable.utils.deselect(element) since latest commit on next-version branch.

Was this page helpful?
0 / 5 - 0 ratings