Black Lives Matter. Please consider donating to Black Girls Code today.

Is there a way to log user behavior as they select Dropdown or Radio items?

So far, Dash documentation provides a way to print out html.Div outputs such as:

@app.callback(
    Output('hover-data', 'children'),
    [Input('startup-scatter-graphic', 'hoverData')])
def display_hover_data(hoverData):
    return json.dumps(hoverData, indent=2)

Is there a way to return / save dcc.Dropdown or dcc.RadioItems?

Thanks,

I’m not sure what you mean here. You can return a dcc.Dropdown for callbacks that have an output with children.

I recommend searching through the forum for children for some more examples: https://community.plotly.com/search?q=children%20category%3A16