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

Any plans on tags in expander? #35

Open
Changwanseo opened this issue Mar 19, 2022 · 2 comments
Open

Any plans on tags in expander? #35

Changwanseo opened this issue Mar 19, 2022 · 2 comments

Comments

@Changwanseo
Copy link

Thanks to this streamlit component, now I've been able to get list inputs in a fashionate form.
However, the problem is that my project needs to get 51 options in total, so I put all inputs in expander.
But I found that usage such as
expander.st_tags_sidebar() is not possible.

It would be great if tags can be used in expander

@Socvest
Copy link

Socvest commented Aug 6, 2022

You could put it in a with statement:

with st.expander():
       st_tags_sidebar()
      ....

@Rom1deTroyes
Copy link

I can confirm that it works with with :

    with st.expander("exp", True):
        st.header("HeaderE")
        st.markdown("-----")
        selection_codes_articles = st_tags(
                label="Articles à chercher E:",
                text="(Code + Entrée pour ajouter)",
                value=["12345-01"],
                suggestions=["12345-01"],
                maxtags=-1,
                key="ArticlesE",
        )
        btn = st.button('->E')

image

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