Struct material_yew::list::ListProps
source · pub struct ListProps {
pub activatable: bool,
pub root_tabbable: bool,
pub multi: bool,
pub wrap_focus: bool,
pub item_roles: Option<AttrValue>,
pub inner_role: Option<AttrValue>,
pub noninteractive: bool,
pub onaction: Callback<ListIndex>,
pub onselected: Callback<SelectedDetail>,
pub list_link: WeakComponentLink<MatList>,
pub children: Children,
}
Expand description
Fields§
§activatable: bool
§root_tabbable: bool
§multi: bool
§wrap_focus: bool
§item_roles: Option<AttrValue>
§inner_role: Option<AttrValue>
§noninteractive: bool
§onaction: Callback<ListIndex>
Binds to action
event on mwc-list
onselected: Callback<SelectedDetail>
Binds to selected
event mwc-list
list_link: WeakComponentLink<MatList>
[WeakComponentLink
] for MatList
which provides the following methods
toggle(&self, index: usize, force: bool)
get_focused_item_index(&self) -> usize
focus_item_at_index(&self, index: usize)
See [WeakComponentLink
] documentation for more information
children: Children
Trait Implementations§
source§impl PartialEq<ListProps> for ListProps
impl PartialEq<ListProps> for ListProps
impl StructuralPartialEq for ListProps
Auto Trait Implementations§
impl !RefUnwindSafe for ListProps
impl !Send for ListProps
impl !Sync for ListProps
impl Unpin for ListProps
impl !UnwindSafe for ListProps
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.