Hello
have the following code:
def interactive_table(dataframe):
return html.Div([
dash_table.DataTable(
id='table',
columns=[{"name": i, "id": i} for i in dataframe.columns],
data=dataframe.to_dict('records'),
style_table={'overflowX': 'auto'},
style_cell_conditional=[{'if': {'column_id': 'ID'},
'width': '20px', 'textAlign': 'center'}],
style_cell={
'minWidth': '98px', 'width': '98px', 'maxWidth': '120px',
'height': '19px', 'minHeight': '19px', 'maxHeight': '19px',
'overflow': 'hidden',
'textOverflow': 'ellipsis',
'textAlign': 'left'
},
editable=True,
filter_action="native",
sort_action="native",
page_action="native",
column_selectable="single",
#row_selectable="multi",
#row_deletable=True,
selected_columns=[],
selected_rows=[],
# export_format="csv",
page_current=0,
page_size=20
)
], style={'margin': '30px'})
I’m trying to put a specific value for the cell height but it doesn’t work, the height remains unchanged,
please, tell me how to fix it or how to correctly set the height of the cell
Thank you
3 posts - 2 participants






