diff options
author | Lukas Metzger | 2020-06-10 15:35:24 +0200 |
---|---|---|
committer | Lukas Metzger | 2020-06-10 15:35:24 +0200 |
commit | 5af4a1983b872c2c471eb9ca35765044a3a20070 (patch) | |
tree | 4ea3834de53df5f3e3146d9e081e96edf6207e2f /pages/locations.py | |
parent | Retain state after graphics update (diff) | |
download | bwlp-statistics-5af4a1983b872c2c471eb9ca35765044a3a20070.tar.gz bwlp-statistics-5af4a1983b872c2c471eb9ca35765044a3a20070.tar.xz bwlp-statistics-5af4a1983b872c2c471eb9ca35765044a3a20070.zip |
Added persistence for inputs
Diffstat (limited to 'pages/locations.py')
-rw-r--r-- | pages/locations.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pages/locations.py b/pages/locations.py index 470fc19..9cb36bc 100644 --- a/pages/locations.py +++ b/pages/locations.py @@ -22,7 +22,9 @@ def layout(): id='locations-days', options=[{'label': '{} days'.format(d), 'value': d} for d in [7, 30, 90]], value=7, - clearable=False + clearable=False, + persistence=True, + persistence_type='memory' ) ]), dbc.Col(width=12, lg=3, children=[ @@ -32,7 +34,9 @@ def layout(): display_format='DD-MM-YYYY', max_date_allowed=get_newest_date(), initial_visible_month=get_newest_date(), - first_day_of_week=1 + first_day_of_week=1, + persistence=True, + persistence_type='memory' ), ]), dbc.Col(width=12, lg=6, children=[ |