Table row drag&drop to re-order #22257
j-d-carmichael
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://element-plus.org/en-US/component/table
We have a jira like backlog feature, the entries are rows in a table.
We need to be able to change the order of the rows by drag&drop: Drag 1 row above another.
We had to add drag drop event listeners to the table cells
Row1: [cell 1 drag handle] | [cell 2 drop listener]
Row2: [cell 1 drag handle] | [cell 2 drop listener]
Row3: [cell 1 drag handle] | [cel l2 drop listener]
Due to the way this component works, we could not dnd on the whole table row, we had to listen on the individual cell.
Would be nice to be able to drag and drop a table row onto a whole other table row and have the native drag and drop functionality just baked into the table component.
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions