I want to capture the click even from metric objects or subtitle object

Hi geniuses, is there a way to capture the click even from metrics objects or subtitle objects?

1 Like

I don’t think that would doable with the built in streamlit metric or subtitle objects. Streamlit consider those objects to be not interactive. I think you might be able to deal with this by using custom components though. Create a Component - Streamlit Docs

wow! Thank you! Let me study with it first!

Do you know if there’s a streamlit component that I can pass other components in and the new components will be the one can capture click events, like a button.

Hey @Oswald_Zhao_Yang , sadly there is not :frowning:

hahahaha okay! Thank you tho!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.