Page disabling in st.navigation

Hi,

I wonder if there is a way to disable some pages dynamically in the sidebar of a multi page app. I use st.navigation to create the app. While I can remove the page from the sidebar, I couldn’t find a way to disable it (i.e., graying out the page in the sidebar while showing the page title so that users cannot click it and go to that page. ).

Is there a way to do it in st.navigation without moving to st.page_link?

Thanks!

Why do you not want to use st.page_link?

The main problem that I’m having is, I have to mention the styling I make to pages in every page file. In contrast, st.navigation allows to mention them in the entry point and will be applied to the entire app. Also, navigating through pages results in a flicker, which is unnoticeable in st.navigation

You can still mention the styling in the entrypoint.
st.page_link also uses st.navigation in the backend.. Only the rendering changes.