Skip to main content
LHege.1
Associate III
May 31, 2021
Question

Scroll Container List Layout with draggable items

  • May 31, 2021
  • 2 replies
  • 906 views

Hi there,

I would like to implement a list with draggable elements to set a new order in the list. Is this possible with the standard list implementation or do I have to implement my own list logic?

Kind Regards

This topic has been closed for replies.

2 replies

Romain DIELEMAN
ST Employee
June 1, 2021

Hi,

There are no widgets for this with draggable elements of a list, but it should be doable. Do you wish to have a scrollable list or just a few elements that you wish to rearrange ? The difficulty with a scrollable list will be how to differentiate the drag event of an element and the scroll of the list.

/Romain

LHege.1
LHege.1Author
Associate III
June 1, 2021

Hi Romain

The list does not have to be scrollable at the time the objects are rearranged. I have some ideas how to implement it but I wanted to check first if there is some kind of best practice to do the draggable element implementation. Should I work with the Draggable class and implement handleDragEvent?

Kind Regards