Would it be possible to Activate a Tab with a Button in the SideBar ?
How could I do this?
Thanks
Michel
Hi @maajdl
I’m not sure if it’s possible to open up a tab without explicitly clicking on it with a mouse. But if you create a multipage app, you can definitely use a st.button
to active a page in the multipage app using either the switch_page
method from the streamlit-extras
component or by linking to the explicit URL of the page such as https://yourapp.streamlit.app/yourpage
via a custom callback function.
Here’s the Docs page from streamlit-extras
on implementing this:
https://arnaudmiribel.github.io/streamlit-extras/extras/switch_page_button/
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.