pub struct Select {
pub id: String,
pub label: String,
pub options: Vec<String>,
pub selected: usize,
pub width: Option<f32>,
pub enabled: bool,
pub text: Option<String>,
pub disabled: Vec<usize>,
pub hints: Vec<String>,
pub separated: Vec<usize>,
pub segmented: bool,
pub search: bool,
}Expand description
A Widget::Select: one of options, told as PanelEvent::Choice.
Fields§
§id: String§label: String§options: Vec<String>§selected: usize§width: Option<f32>Its width in points; the panel’s field width when left out.
enabled: bool§text: Option<String>Shown in the closed field in place of the option chosen: a count,
or a prompt for a list that only adds (selected past the end
then marks none).
disabled: Vec<usize>The options offered but not to be chosen now, by their place.
hints: Vec<String>Words on hover over each option, by its place; empty for none.
separated: Vec<usize>The options with a line above them, setting them apart.
segmented: boolThe options side by side in the row, the chosen one lit, in place of a dropdown.
search: boolA search field atop the open dropdown, narrowing a long list to the options that match what is typed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Select
impl<'de> Deserialize<'de> for Select
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl Forget for Select
impl Freeze for Select
impl Move for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more