Hey!
I have 5 sets of same component groups - a dropdown and a button that selects all the dropdown options. For that I have a callback that utilizes the keyword MATCH:
@callback(
Output({"type": "dropdown", "index": MATCH}, "value"),
Input({"type": "button", "index": MATCH}, "n_clicks"),
State({"type": "dropdown", "index": MATCH}, "options"),
prevent_initial_call = True
)
def select_all_options(dropdown_clicks, values):
return values
I want a separate button that takes all of these dropdowns and clears them. I could not figure out how to add that to this callback. I have tried a separate callback that uses the keyword ALL, but that threw and error about the components having multiple outputs in different callbacks. Any ideas? Thanks!