Any chance of a V7 example with combined drag by column header or by row in same table #2091
Unanswered
madbiker88
asked this question in
General
Replies: 1 comment 2 replies
-
Did you succed? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
It seems react-table is going through a major upgrade V7 to V6 but there are precious few examples of V7 for dragging interactive elements. Most are for V6 and so not totally relevant giving either column or row drag but not both in same table. The current V7 examples do not yet show drag and drop.
Looking across react tables in general I find column sorting, or row sorting, but not both combined in same table, but it appears that react-table can do it. React beautiful DND makes a comment that they do not do column reorder, but react table has specific hooks built for column reorder.
The best example I have found for V7 dragging is from https://codesandbox.io/s/gargroh-v7-drag-column-beautiful-react-dnd-encww. This only does column drag, and I am trying to build another version with working rowdrag in same table as well.
There are other V6 versions that do row drag, but there is a little bit of special setup to doing row drag and column drag in the same table and I am not succeeding. Any chance of some assistance in providing a worked example in V7 react table.
My end goal is a excel like table with row drag reordering, column header drag reordering, plus cell editing to look rather like an Excel spreadsheet. I think it would be a great showcase of what react-table can do- ie. something that would aid adoption of react table.
I am working through to create it myself but I am new to both React and js. I will keep you posted if I succeed.
Beta Was this translation helpful? Give feedback.
All reactions