You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for this cool library! I have a question. There is a list of 5 elements. The first and last elements are fixed and cannot be moved. The elements in the middle can move relative to each other. The server returns their positions when requested. How after getting the positions of the elements, I can sort them relative to each other.
Activity
r0otx commentedon Aug 18, 2024
I'm was resolve this next method.
Use dataIdAttr and set unique id for per element in list:
Create string array with this elements ids:
const orderElements = ["el1", "el2", "el3"];Use store in useSortable:
When init my app, I'm sort array how send me elements position my backend.