df_ai / helper /button_behaviour.py
Ronio Jerico Roque
feat: add hide_button and unhide_button functions for button visibility control
69b8a89
raw
history blame
559 Bytes
import streamlit as st
def hide_button():
st.markdown(
"""
<style>
.element-container:nth-of-type(5) button {
display: none;
}
</style>
""",
unsafe_allow_html=True,
)
def unhide_button():
st.markdown(
"""
<style>
element-container:nth-of-type(5) button {
display: inline;
}
</style>
""",
unsafe_allow_html=True,
)