I get this error:
Invalid argument `fixed_columns` passed into DataTable with ID "sys_table".
Value provided:
[
{
"headers": true,
"data": 1
}
]
With this code:
table = dash_table.DataTable(
id=table_name,
columns=[{"name": name, "id": col} for name, col in zip(headers,
df_columns)],
fixed_rows = {'headers': True, 'data': 0},
fixed_columns = {'headers': True, 'data': 1},
data=df.to_dict('records'),
fill_width=True,
row_selectable=row_selectable,
filter_action="native",
sort_action="native",
sort_mode="multi",
style_cell_conditional=[{"if": {"column_id": "Specs"},
"textAlign": "left"}],
style_table={'overflowX': 'scroll', 'maxHeight': '600px',
'maxWidth': '1500px', 'overflowY': 'scroll'},
style_cell={"padding": '0 2rem', 'border': 'none', 'minWidth': '200px',
'width': 'auto', 'height': 'auto', 'whiteSpace': 'normal'},
style_header={'font_size': '20px', 'text_align': 'left',
'backgroundColor': colors['table_header_background'],
'color': colors['bright_text'], 'fontWeight': 'bold'},
style_data={'font_size': '18px', 'text_align': 'left',
'backgroundColor': colors['table_background_1'],
'color': colors['bright_text']},
style_data_conditional=[{'if': {'row_index': 'odd'},
'backgroundColor': colors[
'table_background_2']}],
)
I am using dash-table v. 4.11.0. I am following the guidelines in DataTable docs. What am I doing wrong?