I tried putting this into my theme.css file, and adding a “horizontal-scroll” roll, but still didn’t get horizontal scrolling. Could you get it to work in my toy example?
Yes, it worked, but there’s a few things you need to do extra or forgot to do.
On Form1:42, you forgot to change the role to horizontal-scroll.
On Form1:32 you should specify the minimum width for the column. You could also allow it to expand so if you want that behaviour. The line would look like (29 to 33):
# define grid columns
columns = []
for i, header in enumerate(headers):
columns += [{ "id": f"{i}", "title": f"{header}", "data_key": f"{header}", "width": 100, "expand": True }]
grid.columns = columns[:]