Hi,
I have a nested accordion which I created using dmc.AccordionMultiple .
Part of the issues that I’m having with it is that the items always stays open, so I’m trying to close it using a callback.
When the user first click on an item, I’m generating the panel using the following callback:
@app.callback(
[
Output({'type': 'accordion_panel', 'index': MATCH}, "children") ,
Output({'type': 'raw_vars_accordion_panel', 'index': MATCH}, "children"),
],
Input({'type': 'accordion_', 'index': ALL }, 'value') ,
prevent_initial_call=True
)
Now if a user opens another item, I want the first one to be closed.
I wanted to add another Output to this callback but I don’t know if it’s correct logically:
Output({'type': 'accordion_', 'index': MATCH }, 'value') ,
)
This is also my input, so I’m not sure how to do it, and if its possible…
Any ideas?