WTableView dragging and dropping
In a WTableView, the table can be configured in such a way that the elements of the model that the view displays can be dragged and dropped.
This offers a more intuitive way to sort items compared to selecting an element and pressing your keyboard or some buttons attached to the view.
There are currently two issues with this:
- When selecting an item and dragging it to anywhere in the table, it will always try to position itself under the
nth element, where
nis the number of the column where the cursor is located. Even if the cursor is positioned closer to another row.
- When selecting an item and dragging it out of bounds of the parent container (class
tcontainerinside of the
Wt-tableview), a JS error occurs, crashing the functionality until a reload occurs.