streamlit-tags icon indicating copy to clipboard operation
streamlit-tags copied to clipboard

Any plans on tags in expander?

Open Changwanseo opened this issue 2 years ago • 2 comments

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

Changwanseo avatar Mar 19 '22 08:03 Changwanseo

You could put it in a with statement:

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

Socvest avatar Aug 06 '22 01:08 Socvest

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

Rom1deTroyes avatar Dec 22 '22 08:12 Rom1deTroyes