- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
Support sticky headers on table #6486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
| I like the idea! Do you also want to pass in python params to control this? Eg. max_height and sticky_header this is kinda interesting from plotly: app.layout = dash_table.DataTable(
    data=df.to_dict('records'),
    columns=[{'id': c, 'name': c} for c in df.columns],
    style_table={'height': '300px', 'overflowY': 'auto'}  # <---
) | 
| Hi @Light2Dark, yes, perhaps some control makes sense. | 
| my preference would be to avoid css styles as the args to get this and it is a flag that handles it (e.g.  | 
| So,  | 
| 
 Yep i think an  
 Yea i think if max-height is set, create a variable  
 We can leave these separate and have the user config. give the flexibility of pagination 100 but still a max-height | 
📝 Summary
Sorry if this is more of an feature request than an actual PR.
We have long and wide tables in our organization and wish to improve scroll through this vertically.
(We are using
pagination=Falseto see all rows)freeze_columnsworks well nicely for horizontal scrolling.But when a table is long:
🔍 Description of Changes
It would be interesting if we could have something long these lines:
(table header is red for dramatic effect)
Could we have something that brings this experience?
If so, I'd be happy to work on this in whatever solution you deem best.
//cc @mscolnick @Light2Dark
📋 Checklist