Example app: https://key-up.streamlitapp.com/
Hopefully a few people find this useful.
Example app: https://key-up.streamlitapp.com/
Hopefully a few people find this useful.
Thanks for sharing @blackary , super useful indeed!
Is there a reason for not having this as part of the Streamlit native st.text_input
?
Good question: @marduk. There has been some discussion of that very idea here st.text_input live update parameter · Issue #4899 · streamlit/streamlit · GitHub – feel free to weigh in!
In the meantime, I’c love to see it in our Tracker
@andfanilo Added
element is displayed in iframe, dark theme shows it with a white padding (iframe background is white) and cant be restyled + does not update with theme switch
@nocyphr_nocyphr Good catch – PRs welcome
@nocyphr_nocyphr Thanks to dreth (Daniel A.) · GitHub, there is a new release which fixes the background color issue
Hey blackbary, it seems that the st_keyup “disabled” keeps that initial value (True/False) and wont change until the page is rerenderred. is it just me ?
with cols_row1[1]:
print(st.session_state.te_sn_disabled)
st.session_state.te_sn_value = st_keyup(label="Serial Number",
key="te_sn",
disabled=st.session_state.te_sn_disabled)
st.session_state.te_sn_disabled is changed dynamically.
Hey @Zohar1, nope, it’s not you. Thanks for catching that! I’m really surprised I hadn’t seen that before, but it’s now fixed in version 0.3.0.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.