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

Appear html.Button when another one is clicked

$
0
0

Hi!

I’m quite new in Dash and I have a dropdown that is triggered with a button and I also added a “select-all” button. Though I need the select button to stay hidden and only appear when I click the first one to use the dropdown.

This is the main dropdown button:

def dropdown_button(filter_id):
    return html.Button(
        html.I(className='fa fa-eye'),
        className="naked-link-button",
        **{'data-toggle': 'collapse', 'data-target': f'#{filter_id}'},
    )

and this is an attempt to make the select button work as intended

html.Button("Select All", id="select-all", n_clicks=0, style=dict(display='none'))

def show_button(dropdown_button):
    if condition:
        return dict()
    else:
        return dict(display='none')

Also not sure what to include in the callback.

Thanks in advance for any responses.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles