Function egui::containers::combo_box_with_label  [−][src]
pub fn combo_box_with_label(
    ui: &mut Ui, 
    label: impl Into<Label>, 
    selected: impl ToString, 
    menu_contents: impl FnOnce(&mut Ui)
) -> Response👎 Deprecated: 
Use egui::ComboBox::from_label instead
Expand description
A drop-down selection menu with a descriptive label.
Deprecated! Use ComboBox instead!
egui::combo_box_with_label(ui, "Select one!", format!("{:?}", selected), |ui| {
    ui.selectable_value(&mut selected, Enum::First, "First");
    ui.selectable_value(&mut selected, Enum::Second, "Second");
    ui.selectable_value(&mut selected, Enum::Third, "Third");
});