Skip to main content

TheDropdownMenuTrait

Trait TheDropdownMenuTrait 

Source
pub trait TheDropdownMenuTrait: TheWidget {
    // Required methods
    fn add_option(&mut self, option: String);
    fn selected_text(&self) -> String;
    fn set_selected_index(&mut self, index: i32);
    fn selected_index(&self) -> usize;
}

Required Methods§

Source

fn add_option(&mut self, option: String)

Source

fn selected_text(&self) -> String

Source

fn set_selected_index(&mut self, index: i32)

Source

fn selected_index(&self) -> usize

Implementors§