Set column widths

master
Dan Howe 5 years ago
parent 398a179397
commit f36f4f2d2c

@ -47,13 +47,17 @@ app.layout = html.Div([
} for key, val in variables.items()], } for key, val in variables.items()],
data=df.to_dict('records'), data=df.to_dict('records'),
editable=False, editable=False,
# filter_action="native",
sort_action='native', sort_action='native',
sort_mode='multi', sort_mode='multi',
row_selectable='multi', row_selectable='multi',
row_deletable=False, row_deletable=False,
selected_rows=np.arange(df.shape[0]), selected_rows=np.arange(df.shape[0]),
style_as_list_view=True, style_as_list_view=True,
style_cell={
'minWidth': '100px',
'width': '100px',
'maxWidth': '100px',
},
), ),
html.Div(id='datatable-row-ids-container') html.Div(id='datatable-row-ids-container')
]) ])

Loading…
Cancel
Save