streamlit_tree_select icon indicating copy to clipboard operation
streamlit_tree_select copied to clipboard

on_change callback functions

Open markusdr opened this issue 9 months ago • 0 comments

It would be useful to have a callback mechanism:

def fct_expanded():
    print('Event detected: expanded')

def fct_checked():
    print('Event detected: checked')

tree_select(nodes, on_change_checked=fct_checked, on_change_expanded=fct_expanded)
    

This would be analogous to the on_change on st.checkbox (https://docs.streamlit.io/develop/api-reference/widgets/st.checkbox) and other components.

markusdr avatar May 20 '24 23:05 markusdr