Sigil

Combobox

A text input with a filtered list.

GUITUIRuns in the browsercombobox

Preview

Combobox, Open, light themeCombobox, Open, dark theme

Usage example

fn combobox_demo(disabled: Signal<bool>) -> NodeBuilder {    let language = Combobox::new(vec![        String::from("Rust"),        String::from("Go"),        String::from("Zig"),        String::from("C++"),    ])    .placeholder("Language")    .disabled(disabled);    combobox(language)}
fn combobox_demo(  disabled: Signal<bool>,) -> NodeBuilder {  let language = Combobox::new(vec![    String::from("Rust"),    String::from("Go"),    String::from("Zig"),    String::from("C++"),  ])  .placeholder("Language")  .disabled(disabled);  combobox(language)}

States

All 6 captured states, each drawn by the window host and by the terminal host.

  • Combobox, Default, light themeCombobox, Default, dark theme
    Default
  • Combobox, Hover, light themeCombobox, Hover, dark theme
    Hover
  • Combobox, Pressed, light themeCombobox, Pressed, dark theme
    Pressed
  • Combobox, Focused, light themeCombobox, Focused, dark theme
    Focused
  • Combobox, Disabled, light themeCombobox, Disabled, dark theme
    Disabled
  • Combobox, Open, light themeCombobox, Open, dark theme
    Open

API

NameSignaturePurpose
comboboxfn combobox(state: Combobox) -> NodeBuilderA text input with a filtered list.