Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override multipage app side bar #58

Open
tombeteende opened this issue Dec 12, 2023 · 2 comments
Open

Override multipage app side bar #58

tombeteende opened this issue Dec 12, 2023 · 2 comments

Comments

@tombeteende
Copy link

I have a multi-page app where all the pages besides the main page are under /pages.

I want to override the default sidebar with the a horizontal option menu.

What is the best way to do it?

@CHerSun
Copy link

CHerSun commented Dec 14, 2023

stpages

@fgdvir
Copy link
Collaborator

fgdvir commented Dec 14, 2023

I'm not sure exactly how this is related to the streamlit-option-menu.
But in general it is streamlit behavior to automatically create the sidebar if you put your pages in a pages dir.
if you want to use the menu instead, just rename that dir and then using an if/else or match/case just decide what to load (which page to show)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants