Hello Team,
I have a streamlit app that uses streamlit metric. I want to click on the metric to invoke a function to display a table relating to that metric.
how can that be made possible ?
example image
Thanks
Hey @sheneeb!
Thanks for trying out st.metric and welcome to the community! That’s a feature we have on the roadmap (quite often people want to have this for clicking on tables or images) but can’t give you any date for when we’ll get to it. I’ll make sure we also think about st.metric when we work on this!
Cheers, Johannes
Hey good day, has this been implemented now?
Hi @nabeelarshed, this has not been implemented, but feel free to create a product enhancement request here
When will this be implemented? Clickable metric cards would be game changing!
Please upvote and comment here: Callback on st.metric click event · Issue #9370 · streamlit/streamlit · GitHub