List of items as an input?

Hello!

First of all, amazing tool, Iā€™m using it on a few project, thankā€™s so much for creating such an amazing tool!

Iā€™m asking after Iā€™ve searched the docks and was not able to find, is there a way to create a list of parameters as an input?

I know thereā€™s a multi_select, but thatā€™s not what is needed.
To be more specific, I have a huge database, and the user should input for example a list of IDā€™s he would like to see data about them.

The only way I currently see for doing it, is creating it as text input, and splitting the text by some character, is there something that is built-in? (Also, the IDs are not constant, so I canā€™t really create a list, and nor can I make a call to the DB to pull the IDs due the fact that not all of the users see all of the IDā€™s.

Thanks a lot!

3 Likes

Hey @BugzTheBunny,

First, Welcome to the Streamlit community!!! :partying_face: :partying_face: :tada: :tada:

Second, thanks! We also think streamlit is amazing! :star_struck: :smiling_face_with_three_hearts: :rofl:

are you looking to create some sort of input form type of thing where all the widgets append their values to a list?

Do you have any screen shots and a code snippet of what your looking for?

Thanks,
Marisa

1 Like

Hey @Marisa_Smith

The goal of this is to make something like a list of str items.
for example the user will be able to input something like tags or something, not specificly a form, just an input field, for text, which will take some words.

to create soemthing like Stackoverflow tags
image

2 Likes

Thatā€™s exactly what Iā€™m looking for.
Any update on that, @Marisa_Smith ?
Thank you

Hey @GitHunter0 (and @BugzTheBunny),

Have you seen this component that was made by @gagan3012, one of our community members?

3 Likes

No, thank you for pointing that out! @Marisa_Smith

2 Likes

Nope, didnā€™t see it, and it looks awesome, thank you! @Marisa_Smith

2 Likes

@Marisa_Smith , do you plan to incorporate the best external components as native Streamlit?

2 Likes

Hey @GitHunter0,

Currently, that isnā€™t currently in our plans (unless we find a special case). We want people to be able to have control over their components but also (and in my mind mainly) you then get to have bragging rights on your resume that you built this component that X many people use!

Check out this more detailed answer by one of our creators, @andfanilo:

Happy Streamlit-ing!
Marisa

Hi @Marisa_Smith , thank you for the feedback!

Although I think some incorporations would be nice to reduce dependencies, I can understand your reasoning.

Keep the great work!

1 Like