We have a table where user data is represented in rows of 3 (eg. [0,1,2] for 1st user, [3,4,5] for 2nd user and so on). And we need to implement user reordering, where is seems that the most intuitive way to do it would be to use manualRowMove.
When trying to manually move rows, is there a way to change the movedRows array and dropIndex values, since the user could try to drag incorrect amount of rows to the incorrect position?
Requirement:
- dropIndex % 3 === 0
- movedRows should always have all 3 rows for each user:
+ movedRows = [1] => [0,1,2]
+ movedRows = [5,6,7,8,9] => [3,4,5,6,7,8,9,10,11]