-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Would it matter that I have the Store component within a Tab? I tried putting the Store component anywhere else at which point I get a loading dependency error. Any thoughts?
@app.callback(Output('tabs-content', 'children'),
[Input('tabs', 'value')])
def render_content(tab):
if tab == 'tab-1':
return html.Div([
dcc.Store(id='ticker-options-memory', storage_type='local'), # For DropDown Options
# dcc.Store(id='ticker-selection-memory', storage_type='session'), # For DropDown Values
dcc.Dropdown(
id='stock-ticker-input',
multi=True,
),
dcc.Input(
id='keyword',
placeholder='Search Ticker Database',
type='text',
value=''
),
html.Button('Add Results to Dropdown', id='add-results-button', n_clicks=0),
html.Br(),
dcc.DatePickerRange(
id='date-picker-range',
# start_date_placeholder_text= ,
max_date_allowed=dt.date(dt.today()),
start_date=dt.date(dt.today()) - timedelta(days=30),
end_date=dt.date(dt.today()),
calendar_orientation='vertical',
),
html.Div(id='market-graph'),
])
Metadata
Metadata
Assignees
Labels
No labels