I've recently started a Dash application that shows up pre-registered HTML files that I show via HTML.iFrame :
html.Iframe(id = 'my-output', src = "assets/ABCD.html",
style={"height": "495px", "width": "100%",})
and I've got a function/app callback, like the following:
@app.callback(
Output(component_id='my-output', component_property='children'),
Input(component_id='my-input', component_property='value'),
)
def update_output_div(input_value):
return XYZ
Now I need that output value in my src, like this
html.Iframe(id = 'my-output', src = "assets/XYZ.html",
style={"height": "495px", "width": "100%",})
But i don't know how to get back that output value and change my src parameters.