Center the date-picker for sample app

This commit is contained in:
Lance Edgar 2021-12-16 22:46:52 -06:00
parent 636366bfac
commit 7aef6b5923

View file

@ -82,9 +82,11 @@ def sample_dash_app(config):
# 'color': colors['text'], # 'color': colors['text'],
}), }),
dcc.DatePickerSingle(id='mydatepicker', html.Div([
dcc.DatePickerSingle(id='mydatepicker',
initial_visible_month=date, initial_visible_month=date,
date=date.strftime('%Y-%m-%d')), date=date.strftime('%Y-%m-%d')),
], style={'textAlign': 'center'}),
dcc.Graph( dcc.Graph(
id='example-graph', id='example-graph',