You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure I understand exactly what you are trying to do and what is not working. Can you please elaborate?
Normally, you have to click on the option to change the selection. This is fine, works as a nav bar should. I'd also like to change the option programmatically, e.g. via a button:
if st.button("Go to My Documents"):
st.session_state.navigation = "My Documents"
st.rerun()
However, this doesn't work. You can do this with other types of navigation but not option_menu.
I have the following option menu:
I'd like to programmatically change the option selection, e.g. via a button, in some cases. This has always run into errors.
Is there a way to do this?
The text was updated successfully, but these errors were encountered: