12 lines
392 B
Python
12 lines
392 B
Python
![]() |
from pkg.dash.app_init import app
|
||
|
from dash.dependencies import Input, Output
|
||
|
|
||
|
@app.callback(
|
||
|
[Output('date-picker-container', 'style'),
|
||
|
Output('days-display-container', 'style')],
|
||
|
[Input('tabs', 'value')]
|
||
|
)
|
||
|
def toggle_controls_visibility(tab):
|
||
|
if tab == 'heatmap':
|
||
|
return {'display': 'none'}, {'display': 'block'}
|
||
|
return {'display': 'block'}, {'display': 'none'}
|