streamlit_tree_select
streamlit_tree_select copied to clipboard
A simple and elegant checkbox tree for Streamlit.
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...
Is it possible to enforce a maximum number of checked nodes? My tree shows different text versions, and the user should be allowed to only two nodes, for which a...
 Repo steps: set .streamlit config.toml: ``` [theme] base = 'dark' ``` Use default example for tree_select. ``` # Create nodes to display nodes = [ {"label": "Folder A", "value":...
How can I change the label style (for example: bold, color...) of nodes? I want something like this: { "value": f'table_name', "label": f"Table table_name, keys: table_keys", }
Great work. Thanks. I want to extend tree select. Can you describe how developer set up, and some guidelines what you expect from PR. Thanks again.
Hi, I documented feature requests here: https://discuss.streamlit.io/t/new-component-streamlit-tree-select-a-simple-and-elegant-checkbox-tree/30195/10 Thanks, Arvindra
how can I deselect my selection? reset the tree?
Now you can pass html as **string** in the label field for more customization For example ```python nodes = [ {"label": "Folder A", "value": "folder_a"} ] ``` 
Hi, The `tree_select` `checked` property doesn't cause the listed nodes to be visibly selected in the tree, nor expand the branches they are in (depending on the `expand_on_click` setting). Would...