I need a JavaScript solution to support drag-and-drop for table cells with varied colspans, adjusting cell widths automatically. Any suitable libraries available?
Based on my experience developing similar features, I have found that working directly with HTML5 drag-and-drop events can be quite challenging when dealing with table cells that have varied colspans. A practical solution is to use a library like SortableJS to manage the drag behavior and automatically adjust cell widths. It handles many cross-browser inconsistencies and reduces manual event coordination. Customizing the behavior for colspans may require extra coding, particularly for computing widths, but using a library simplifies the process considerably in the long run.