I've managed to create a simple drag and drop that does dragstart and gets the item (an object), dragover to get the index of the dragged over item (in the same array) and to work out where it needs to go, then finally drop to set where it needs to go in the same array.
Now I'm looking to drag an item from one list to another, so I have a few questions.
1. Would I be right in assuming that the dragover and drop events need to be on the target list being dragged to and I'd need to set the the target to append the item to an array?
2. Assuming I want to retain styling of the item, etc., I would need to recreate that in the list being dragged to?
3. Is it just simply a case of dropping the item from the original array to make it look like it has been removed and then append to the drop target array?
Or, am I overcomplicating it?