@app.callback(
Output('datatable-filter-container', "children"),
[Input('datatable-filtering-fe', "data")])
def update_graph(rows):
if rows is None:
dff = df
else:
dff = pd.DataFrame(rows)
return html.Div()
How would this work? We are saving the data in a variable dff that does not get used in any way, and we are returning an empty Div for the children property of the container. Is there some magic going on behind this?
Hi! The documentation at https://dash.plot.ly/datatable/filtering shows this callback for front end filtering:
How would this work? We are saving the data in a variable
dff
that does not get used in any way, and we are returning an empty Div for thechildren
property of the container. Is there some magic going on behind this?