You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
dash-recipes/dash-dynamic-tabs.py is an example that is meant to show that one can chose to display tabs based on a condition (in the example, a button click).
I would find this behaviour useful because you could potentailly differentiate tabs depending on user privilege. So the difficulty is that the tabs are only known at runtime.
The example in dash-dynamic-tabs seems to be outdated. It uses a construct like so:
My current solution is to add css styling to the tabs: {'display': 'none'} or {'display':'block'} depending on the condition, and to add app.config['suppress_callback_exceptions']=True after initializing the app.
If I find a better solution and manage to make it run, I will try to pull-request it. I am completely new to Dash, so I am not sure that I will achieve something.
The text was updated successfully, but these errors were encountered:
lioneltrebuchon
changed the title
BUG: dash-recipes/dash-dynamic-tabs.py seems outdated.
LEGACY: dash-recipes/dash-dynamic-tabs.py seems outdated.
Jan 8, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
dash-recipes/dash-dynamic-tabs.py is an example that is meant to show that one can chose to display tabs based on a condition (in the example, a button click).
I would find this behaviour useful because you could potentailly differentiate tabs depending on user privilege. So the difficulty is that the tabs are only known at runtime.
The example in
dash-dynamic-tabs
seems to be outdated. It uses a construct like so:while the current dash examples use:
My current solution is to add css styling to the tabs:
{'display': 'none'}
or{'display':'block'}
depending on the condition, and to addapp.config['suppress_callback_exceptions']=True
after initializing the app.If I find a better solution and manage to make it run, I will try to pull-request it. I am completely new to Dash, so I am not sure that I will achieve something.
The text was updated successfully, but these errors were encountered: