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.