I’ve tried using setting the max-height option with the style_table param, but that has no effect. Is there any way I can provide a custom value for the max height when using a fixed header?
Hi I fixed this in datatable by setting:
css=[{“selector”: “table”, “rule”: “width: 100%;”},{“selector”: “.dash-spreadsheet.dash-freeze-top, .dash-spreadsheet .dash-virtualized”, “rule”: “max-height: 1000px;”}]
Hi nedned,
Thank you so much for posting this solution. I’ve been struggling to get this to work for many hours and your solution did the trick!!! Really great! Thanks!
I was a bit fast in my initial reply.
When using: style_table={"height": "100vh", "maxHeight": "100vh"}, it works as expected in JupyterDash: app = JupyterDash(__name__...)
However, when I use exactly same code in Dash app = dash.Dash(__name__..)
the datatable with virtualization on gets only halfway the screen and doesn’t use the full height of the browser screen. Any idea where this difference might come from and more importantly, how to make it work in Dash?
For the rest my code is completely the same. Any idea how to get a Dash datatable with virtualization and top rows frozen use the entire height of the window?