From 7aef6b5923490fedec9cbdcdcfeb8e208a9c73c1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 16 Dec 2021 22:46:52 -0600 Subject: [PATCH] Center the date-picker for sample app --- rattail_dash/dashapp/sample.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rattail_dash/dashapp/sample.py b/rattail_dash/dashapp/sample.py index 625ba3c..e99a167 100644 --- a/rattail_dash/dashapp/sample.py +++ b/rattail_dash/dashapp/sample.py @@ -82,9 +82,11 @@ def sample_dash_app(config): # 'color': colors['text'], }), - dcc.DatePickerSingle(id='mydatepicker', + html.Div([ + dcc.DatePickerSingle(id='mydatepicker', initial_visible_month=date, date=date.strftime('%Y-%m-%d')), + ], style={'textAlign': 'center'}), dcc.Graph( id='example-graph',