Replies: 1 comment
-
I've never done that, but I know this project implements column reordering: https://github.com/kang-sw/egui-data-table. It uses a custom type rather than the Table from egui_extras, but maybe you can look at their implementation for inspiration. The drag-and-drop part should be around here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to make the entire column header cell a drag and drop item so I can implement column re-ordering.
If I attempt to use allocate_rect(min_rect), or I use a right-to-left layout within the cell, the cell just grows infinitely.
How can I have the whole cell be a draggable area? Aside: is it possible to align some things (e.g. a button) to the right without growing the column?
Beta Was this translation helpful? Give feedback.
All reactions