2025-03-05 10:24:46 +08:00
|
|
|
from pkg.dash.app_init import app
|
|
|
|
from dash.dependencies import Input, Output
|
|
|
|
|
2025-03-05 11:18:21 +08:00
|
|
|
|
2025-03-05 10:24:46 +08:00
|
|
|
@app.callback(
|
|
|
|
[Output('date-picker-container', 'style'),
|
2025-03-05 11:18:21 +08:00
|
|
|
Output('days-display-container', 'style'),
|
|
|
|
Output('time-zone-checklist', 'style')],
|
2025-03-05 10:24:46 +08:00
|
|
|
[Input('tabs', 'value')]
|
|
|
|
)
|
|
|
|
def toggle_controls_visibility(tab):
|
2025-03-05 11:18:21 +08:00
|
|
|
if tab == 'heatmap' or tab == 'one_day_heatmap':
|
|
|
|
return {'display': 'none'}, {'display': 'block'}, {'display': 'none'}
|
|
|
|
return {'display': 'block'}, {'display': 'none'}, {'display': 'block'}
|