I would like to be able to use a popover to house the parameters for an operation that runs when clicking a button also in the popover. However, currently, the popover stays open and hides the dataframe that results from the operation. It would be nice to be able to force the popover to close so the user does not have to click to hide it.
Thanks!
In Streamlit, popovers don’t automatically close on button clicks. A common approach is to use a state variable to control the popover’s visibility—when the button inside the popover is clicked, update the state to hide it, so the popover closes and the resulting dataframe becomes visible.
What is the property of popover class that I can update that would cause it to close?
I also agree, this function should be build into popovers. All mordern applications allows users to input data on the popup windows and then pass the data to underlying application or update dataframe/database. This keeps screen neat, popup opens for input or information or both, user carriees out the required action and closes popup based on action required such as update, save, exit etc by pressing required button on the popup itself. Streamlit should bring this feature natively.