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

Select a value programatically #75

Closed
bmaisonneuve opened this issue Nov 5, 2024 · 2 comments
Closed

Select a value programatically #75

bmaisonneuve opened this issue Nov 5, 2024 · 2 comments

Comments

@bmaisonneuve
Copy link

Hello,

Thank you for the component, it works well.

I have a question, is it possible to select a value from the code ? My goal would be to set a default value on load to select a specific value in the searchbox. I need the user to see that a value is selected, if I use the default option, there is not value selected in the component.

@m-wrzr
Copy link
Owner

m-wrzr commented Jan 2, 2025

Hey, sorry for the late reply. This isn't really possible atm, only via setting the placeholder..

I'll add a new option to set the default_searchterm in the latest version 0.1.20. See #83 Together with the default_option you mentioned this should cover the usecase you described.

@bmaisonneuve
Copy link
Author

Ok, thanks for this answer I'll check that :)

I've dig a bit dipper into streamlit so now I understand it better and I see why you don't have that.

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

2 participants