May I know can Key Press down event be captured in Streamlit selectbox or text?
The scenario here is like:
selectbox is working fine for a static list and return suggested options according to what I input character by character.
However, a static list is not applicable in my case. I need a dynamic list, whenever I input a character the list shall contain the values returned from a REST API call using the already input characters.
For example: I’ll input g-o-o-d, the API will be called 4 times using “g”,"go“,“goo”,“good” and update the options list for selectbox accordingly in sequence. Is there any feature that can support my scenario?
Thanks for any suggestion from community in advance.