Expand description
ComboBox — dropdown selection widget.
Generic over the item type T: Clone + PartialEq + 'static. Selection is
value-based: the bound Signal<Option<T>> survives reorder and insertion
of the backing model. Items come from one of four input paths:
ComboBox::new— static list of localizable strings (the 90% case).ComboBox::from_items— static list of typed values.ComboBox::from_model— reactiveListModel<T>.ComboBox::from_source— externalListDataSource<Item = T>.
The dropdown panel is pre-created during build() and kept dormant until
opened via click, Enter, Space, or ArrowDown/ArrowUp.
The widget is split across four internal modules:
stateholds the interaction-state enum, theItemSourceaccessor, and color/index helpers.itemholds the single-rowDropdownItemwidget.panelholds theDropdownPaneloverlay content and theFilteredItemListinner widget.testsholds the headless unit tests.
Structs§
- Combo
Box - A dropdown selection widget.
Enums§
- Combo
BoxVariant - Tier-1 design-language variant for a combo box trigger. Mirrors the
TextInputVariantshape because both controls live in the same “form-field” visual family — apps that ship a Material 3 theme typically want filled triggers for both, etc.