I noticed I think this no longer works with the latest Streamlit 1.36.0 update. When I select a new leaf I get
Type Error: ‘str’ object is not callable.
Thank you for this great component. I am encountering the following problem. The first time I click on the element, the options do not properly expand, and they hide the search box (second picture). It only has the desired behavior when I click on + to expand a node (third picture). Would it be possible to fix this behavior? As an additional note, would it be possible to make the width use the full container width? (first picture)
I have adjusted the demo app - have a look if you are interested in the component - I have added an examples which styles the tree selector more like a native Streamlit widget.
Hi Fabian,
I really like your work, especially the tree select that I would like to use.
I noticed the search text is cleared after first selection of a filtered element, which makes it tedious if we have several elements to select with the same filter.
Do you think it’s something that could be improved by any chance?
Thanks a lot
Hi Fabian,
I ran a couple of tests and it works thanks
I was struggling to use it until I figured the search is done on values, not on titles.
Since titles are displayed but not values, maybe it would be more consistent that the search is done on titles, what do you think?
Also, selecting a node with filtered children actually selects all the children, not the shown ones only. Is that behavior on purpose?
And last but not least, I saw that you tried to make it look more like genuine Streamlit, although the dark theme is not really supported.
Example of a multiselect:
Hi @Tian ! Great component first of all. Is there anyway I can just select a parent node? Right now clicking any parent node will recursively select all of its descendent. Is there a mode, other than the leaf only one, where I can just select for example an intermediate layer?