This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Description
Currently, multi-line cells requires some pretty complex selectors and rules:
dash_table.DataTable(
style_table={'width': '100%'},
style_data={'whiteSpace': 'normal'},
content_style='grow',
css=[{
'selector': '.dash-cell div.dash-cell-value',
'rule': 'display: inline; white-space: inherit; overflow: inherit; text-overflow: inherit;'
}],
data=df_election.to_dict('rows'),
columns=[{'id': c, 'name': c} for c in df_election.columns]
),

How can we make this simpler?