Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Programmatically collapse the sidebarΒ #4483

@anirudhmn

Description

@anirudhmn

I've been searching through Google and can't find a way to programmatically collapse the sidebar. Currently, the only way to do so is to have the user physically press the x in the corner of the sidebar. If we could programmatically close it that would be nice.


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.

Views

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.sidebarRelated to `st.sidebar` containertype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions