Trying to have a boolean toggle button to switch on and off all of my tooltips. Can’t see why this isn’t working.
Any suggestions?
layout=html.Div([
daq.BooleanSwitch(id='toggle-tooltips'),
dbc.Tooltip(id='tooltip1'),
dbc.Tooltip(id='tooltip2')
])
@app.callback([Output('toltip2', 'autohide'),
Output('tooltip1', 'autohide')],
Input('toggle-tooltips', 'on'))
def toggle_tooltips(toggle_tooltips):
n_outputs = len(dash.callback_context.outputs_list)
return [toggle_tooltips for _ in range(n_outputs)]