Hello dear community,
I’m trying to figure out if there’s a way to control the minimum width of column headers (or columns in general) in the Retool Table component.
When I have a lot of columns — around 50 — the header text gets truncated, and I can’t find any setting to make all column headers wide enough to display their full names.
Is there any option or script to automatically expand all columns to fit the header text (or to set a minimum width for all columns at once)?
Thanks in advance!
Take a look at this screenshot. I want them always to fit the full length of text in the headings.
Hi there!
Yes, this is a common challenge when dealing with a high column count. You're looking for two settings, both of which are in the table's Inspector panel, under the Appearance section.
1. The Direct Solution: Wrap Header
The setting you're looking for is called "Wrap header".
When you check this box, Retool will allow the header text to wrap onto a new line instead of truncating it with "...".
This is the most practical solution for 50+ columns, as it keeps your columns narrow while ensuring the full header text is readable.
2. Automatic Column Widths
You also mentioned auto-width. The setting "Automatic column widths" will make the columns automatically resize to fit their content (the data in the cells), not necessarily the header.
This might not solve your problem if your data is short (e.g., an ID 123) but your header is long (Customer Account ID). In that case, the header will still be truncated.
Hey, thank you so much for your awesome suggestion. Actually, wrapping header was a very, very helpful idea.Yes, about automatic column width. Unfortunately, my contents is really small, like just numerical values, so it was not helping. But wrap column header solved, did the trick.
1 Like