-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ability to add custom items to hamburger menu #396
Comments
When you develop the api, layout and formatting of this please consider if the hamburger menu is enough. I would like to be able to make a menu at the top and fixed as well. Just like these guys :-) So maybe some options like
would be cool. And if the there is not enough space on the screen to expand then it should not expand. |
And in the end I would really like a tree menu. Because I believe I would have a lot of pages in the applications I develop. And I would need to structure them in a tree structure. |
But @tvst. Your requirements are the must have requriements and would keep things simple though. |
@arraydude does what you're doing with the menu get us here or at least most of the way? Beyond getting notified that the menu needs to be changed, I'm not sure what's going on with the actual processing of the message. |
Hi, any news on this? In particular, I'm interested in just hiding the menu. Maybe I could explore the code a bit to provide a PR, but I'm not sure about how do you guys would prefer to implement this |
Hey all! Would love to hear some concrete use cases of what you'd want to do with custom menu options. The only things I see mentioned above are:
If we see some good use cases, we might consider this. But at the moment, it's pretty unlikely we will implement this since I can't see many reasons why people would want this. |
@jrieke In my case, I have more than 20 (and growing) different Streamlit apps running, each from a different GitLab repo. I would like to put a link in the Hamburger Menu to "open an Issue / report a bug" to the GitLab repo of the app. The link would, just like the current "Report a bug" option, open a link to create an issue (on the repo of the streamlit app, not the Streamlit GitHub repo). I find it would be far cleaner to put that link inside the Hamburger menu instead of the sidebar, a footer or anywhere else. |
@vinzeebreak This is possible today by: st.set_page_config(menu_items={"Report a Bug": "<your URL>"}) |
Closing since 1) this issue is very old, 2) most of the requests in the comments above should be solved by recent features ( If you still want this, please open a new issue and describe your exact use case. |
Related issue: #395
Some users would like to add items to the hamburger menu. To support this we'd have to think more deeply about the API for that. For example, would something like this be good enough for real-world use:
What this would do: it would add "Item 1", "Item 2", and "Item 3" at the top of the hamburger menu, followed by a separator. All items that Streamlit puts in there would go below the separator.
(And if we implement the ability to [hide the menu](Related thread: https://discuss.streamlit.io/t/how-do-i-hide-remove-the-menu-in-production/362/3), when hidden only the Streamlit items would disappear.)
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
The text was updated successfully, but these errors were encountered: