'Calling callbacks in streamlit from frontend in custom widgets

I am building the custom button in streamlit. I want to expose certain events like on_click which will trigger callback registered for component in streamlit (python). I am not finding any information regarding that. I know we can return the value using Streamlit.setComponentValue() but nothing found for events



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source