The title says it all. I have a listbox and I would like to be able to reorder the items displayed
via drag and drop. The model should be updated as well of course. I understand I need to use the
pDraggable and pDroppable directives but so far I have only managed to make my list items 'draggable' without being able to 'drop' them above or below other list items.
Also I'm not sure how to use the events provided to update my model once the user drops an item. Finally I would like to have an icon on the left side of each item and that should be the only part of list item that is 'draggable' (with the cursor changing into a hand).
I'm not attaching any code since a listbox is a very simple thing to make. Finally I'm using PrimeNG v9.0.
Thank you in advance!