Nested Selectbox Component #8663
Labels
area:widgets
feature:st.selectbox
type:enhancement
Requests for feature enhancements or new features
type:possible-component
Checklist
Summary
A streamlit component (or configuration of selectbox) to allow for nesting options.
Why?
This is an issue when there are logically grouped options in a selectbox.
Currently either the selectbox list of options gets very long, or the user has to use more than one action to choose the selection.
How?
The simplest API change I can imagine is to pass a dict of options and sub-options to
st.selectbox
Illustratively, to create this:
You could write:
Additional Context
I saw the st_ant_tree custom component, but the styling is far from what I'm looking for.
Admittedly, this could be a good use case for a custom component.
The text was updated successfully, but these errors were encountered: