I have a Dash app that displays a variety of info based on a SQL call to a database for a given day. The app.py file looks like this:
app = Dash(__name__)
server = app.server
gm = GridMaker()
app.layout = gm.full_layout(date="2022-10-23")
if __name__ == "__main__":
app.run_server()
As you would expect, passing a date to the full_layout
function of GridMaker
outputs a new layout based on the data for that date, and that layout is a dash.html.Div
.
Is there a way to use a Datepicker
to control this behavior, given that it would technically be exercising the callback on a Class (not a Dash object)?