I would like to render a html component or part of it only if some condition is true.
Is that possible?
For example:
html.Div(
if condition == True:
children=[
dcc.Graph(id='plot1'),],
else:
children=[
dcc.Graph(id='plot2'),],
)
3 posts - 3 participants