streamlit-tags
streamlit-tags copied to clipboard
Any plans on tags in expander?
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
You could put it in a with statement:
with st.expander():
st_tags_sidebar()
....
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')