streamlit / streamlit

Streamlit — A faster way to build and share data apps.
https://streamlit.io
Apache License 2.0
35.78k stars 3.1k forks source link

Make sections in navigation menu collapsable #9551

Open mischlrebl opened 1 month ago

mischlrebl commented 1 month ago

Checklist

Summary

A project with several/many sections and pages shows at start and all the time every entity. To minimize that view for the user and to focus, it should be possible to collapse sections (with its pages below).

Why?

The app should be able to leave away, and give the user the ability to do so by itself, what is not immediately necessary or important

How?

add an optional parameter for sections in pages: collapse(true/false) which declares the inital state on load

behaviour:

  1. if the parameter itself is given, show an icon after the header title
  2. the icon depends on the value:
    1. false: ▲
    2. true: ▼

Additional Context

take a look on the menu on the left on https://docs.streamlit.io/

github-actions[bot] commented 1 month ago

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits