[Sortable AF] How to specify which element is draggable?
sortable-af
Reactive icon
Forge component by Greg Whitten
Application Type
Reactive

I have a list that contains different widgets and controls per list item and it is sortable using the Sortable AF forge component. It works fine but I only want a specific control (e.g. Menu icon) to be used to sort, not the whole list item container. I tried to specify the Id of the icon in the Options > Draggable but it doesn't seem to work, or maybe I'm doing it wrong. How do I achieve this? Thanks

Solution

I've managed to make it work by adding a class in both the item I want to use to drag (e.g. Icon) and in the Handle property of the SortableList widget.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.