pub struct SelectProps<T>{
pub values: Vec<SelectItem<T>>,
pub selected: T,
pub on_select: Callback<T>,
pub is_autosize: bool,
pub label: Option<&'static str>,
pub id: Option<&'static str>,
pub class: Option<String>,
pub wrapper_class: Option<String>,
}Fields§
§values: Vec<SelectItem<T>>§selected: T§on_select: Callback<T>§is_autosize: bool§label: Option<&'static str>§id: Option<&'static str>§class: Option<String>§wrapper_class: Option<String>Trait Implementations§
source§impl<T> PartialEq for SelectProps<T>
impl<T> PartialEq for SelectProps<T>
Auto Trait Implementations§
impl<T> Freeze for SelectProps<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SelectProps<T>
impl<T> !Send for SelectProps<T>
impl<T> !Sync for SelectProps<T>
impl<T> Unpin for SelectProps<T>where
T: Unpin,
impl<T> !UnwindSafe for SelectProps<T>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.