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
The draggable list example displays a list of 4 items from an array of those 4 items. Does anyone know how to modify this so that you could start with a larger array list... like 10 items, but still only display 4?
As you drag an item to the top of the list, the items at the bottom disappear one at a time and more items pop into the top one at a time (until the one you are dragging reaches the top), but overall there are always 4 list items displayed.
I've been trying to think through a way to do this, but can't quite come up with a solution.
Draggable list example: https://codesandbox.io/embed/r5qmj8m6lq
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The draggable list example displays a list of 4 items from an array of those 4 items. Does anyone know how to modify this so that you could start with a larger array list... like 10 items, but still only display 4?
As you drag an item to the top of the list, the items at the bottom disappear one at a time and more items pop into the top one at a time (until the one you are dragging reaches the top), but overall there are always 4 list items displayed.
I've been trying to think through a way to do this, but can't quite come up with a solution.
Draggable list example:
https://codesandbox.io/embed/r5qmj8m6lq
Beta Was this translation helpful? Give feedback.
All reactions