Struct material_yew::select::Props
source · pub struct Props {Show 19 fields
pub value: Option<AttrValue>,
pub label: Option<AttrValue>,
pub natural_menu_width: bool,
pub icon: Option<AttrValue>,
pub disabled: bool,
pub outlined: bool,
pub helper: Option<AttrValue>,
pub required: bool,
pub validation_message: Option<AttrValue>,
pub items: Option<AttrValue>,
pub index: i64,
pub validity_transform: Option<ValidityTransform>,
pub validate_on_initial_render: bool,
pub children: Children,
pub select_link: WeakComponentLink<MatSelect>,
pub onopened: Callback<()>,
pub onclosed: Callback<()>,
pub onaction: Callback<ActionDetail>,
pub onselected: Callback<SelectedDetail>,
}
Expand description
Fields§
§value: Option<AttrValue>
§label: Option<AttrValue>
§icon: Option<AttrValue>
§disabled: bool
§outlined: bool
§helper: Option<AttrValue>
§required: bool
§validation_message: Option<AttrValue>
§items: Option<AttrValue>
§index: i64
§validity_transform: Option<ValidityTransform>
§validate_on_initial_render: bool
§children: Children
§select_link: WeakComponentLink<MatSelect>
[WeakComponentLink
] for MatList
which provides the following methods
select(&self)
See [WeakComponentLink
] documentation for more information
onopened: Callback<()>
Binds to opened
event on mwc-select-surface
See events docs to learn more.
onclosed: Callback<()>
Binds to closed
event on mwc-select-surface
See events docs to learn more.
onaction: Callback<ActionDetail>
Binds to action
event on mwc-list
See events docs to learn more.
onselected: Callback<SelectedDetail>
Binds to selected
event on mwc-list
See events docs to learn more.
Trait Implementations§
source§impl PartialEq<Props> for Props
impl PartialEq<Props> for Props
impl StructuralPartialEq for Props
Auto Trait Implementations§
impl !RefUnwindSafe for Props
impl !Send for Props
impl !Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
Blanket Implementations§
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>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.