I am using dcc tabs and wondering if there is a way to delete a created tab?
I don’t know if it has style as an option but if it does you can return a style:{display:none}, e.g:
Callback
@app.callback( [Output(component_id="dcc.tab_id",component_property="style")],
[Input(component_id="any_input",component_property="any_property")]
def whatever(input):
do smtg
return [{"display":"none"}]
I tried that but the children of the tab are still displayed. I was hoping to remove the tab and children completely.
I am experiencing a similar issue with the tab feature. Did you ever find a solution for this?
I created a function to iterate over the tabs and only keep what I wanted.
On a separate project I used dash bootstrap tabs and it was much easier by setting the tab name and disabling it. Basically hiding the tab by clearing the name and setting it to disabled.
-CR