Any criticisms or suggestions much appreciated for my draft article at: https://medium.com/@maxrottersman/dash-what-i-learned-in-5-days-7afc89aa9ca1
Full code at: https://github.com/maxrottersman/MaxDashProject
Also, can I replace a kludge I have:
#
# PART 2, Create our clean DASH LAYOUT object
#
app.layout = html.Div([
dcc.Input(id='initialize_app_components_with_dummy_callback', value='', type='text', style={'display':'none'}),
dcc.Dropdown(id='mgr-dropdown'),
dash_table.DataTable(id='table-container'), # , columns = [{"name": i, "id": i,} for i in (df.columns)]
dcc.Graph(id='graph-container')
])
#
# PART 2, Load Initial DROPDOWN LIST DATA in our DASH layout which
# will happen after the app is run.
#
@app.callback(
Output(component_id='mgr-dropdown', component_property='options'),
[Input(component_id='initialize_app_components_with_dummy_callback', component_property='value')]
)
def mgr_dropdown_BuildOptions(df_for_dropdown):
return data_mgr_options_build()
With something like this I saw in the forum but canโt get working?
app.callback(Output('mgr-dropdown', 'options')) (mgr_options_build())
Thanks!