Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Conditional rendering possible?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles