I recently tried to design a table that had a sticky header row AND a sticky first column. I couldn't figure out a way that worked well on both desktop and mobile. All the solutions I found were janky in one form or another. Anyone have good tips for this?
This sounds tough. A common solution, which qualifies as “janky”, is to render sticky rows in a element, completely separate from the itself. If I remember correctly, DataTables [1] takes this approach for its sticky headers. React Table [2] takes a similar approach, and actually abandons altogether by using elements for table body, rows, and cells. [1]: https://www.datatables.net [2]: https://react-table.js.org I ha…
So if it's performant, it's not "janky" (again, in web-dev circles) but it could still be a "hacky" implementation, even without any jank. It's also different from "robust", so something can be not-janky but also not-robust.