Aggrid styling #552
-
Hello, I just show a dataframe with a aggrid. data_dict = {
'columnDefs': [
{'headerName': col, 'field': col} for col in df.columns
],
'rowData': df.to_dict('records'),
'rowSelection': 'multiple',
}
print(data_dict)
ui.aggrid(data_dict).classes('max-h-999') and here is how my table looks like but I want it to be full screen. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Making an HTML fullscreen is actually not that trivial. But you can set the height to 100% of the viewport height. In order to incorporate the 16px margin, you can subtract 32px from that viewport height: ui.aggrid({}).style('height: calc(100vh - 32px)') |
Beta Was this translation helpful? Give feedback.
-
Thanks. |
Beta Was this translation helpful? Give feedback.
max-h-999
is not a Tailwind class. That's why it is not working. See here for available classes.Making an HTML fullscreen is actually not that trivial. But you can set the height to 100% of the viewport height. In order to incorporate the 16px margin, you can subtract 32px from that viewport height: