I am trying to figure out what triggers the display of the sidebar in the multi-page app example “multi_page_layout_functions.” This example displays a navbar with several options. One, titled “Topics” displays a sidebar listing a set of topics (the contents of “topic1.py” to “tpoic3.py”). I can’t figure out how to trigger the display of this sidebar.
I want to have my users click on the equivalent of the “Topic” option on the navbar and run a set of data processing steps before displaying the sidebar. I can’t figure out where to put the data processing function calls (which read data from APIs and produce a set of stand-alone charts).
Should they be part of the sidebar definition code (in this example, these are stored in a file named “sidebar.py”)?
There must be some event that triggers this display. Unfortunately, I don’t see it.
What am I missing?
TIA
AB