Schluca / streamlit_tree_select

A simple and elegant checkbox tree for Streamlit.
MIT License
88 stars 10 forks source link

Enforce maximum number of checked nodes? #17

Open markusdr opened 5 months ago

markusdr commented 5 months ago

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 diff will be displayed. If they try to select a third node, it should be possible to display an error message.