pub struct SimpleListItemProperties {
pub children: Html,
pub class: Classes,
pub button_class: Classes,
pub active: bool,
pub onclick: Callback<MouseEvent>,
pub type: ButtonType,
}
Expand description
A single item which can be selected in a SimpleList
.
Fields§
§children: Html
The content to be rendered inside the item.
class: Classes
Additional classes to pass to the item.
Additional classes to pass to the underlying button.
active: bool
Whether the item is currently selected or not.
onclick: Callback<MouseEvent>
Callback that is triggered when this item is clicked.
type: ButtonType
Type of the underlying button.
Trait Implementations§
source§impl Clone for SimpleListItemProperties
impl Clone for SimpleListItemProperties
source§fn clone(&self) -> SimpleListItemProperties
fn clone(&self) -> SimpleListItemProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SimpleListItemProperties
impl Debug for SimpleListItemProperties
source§impl PartialEq for SimpleListItemProperties
impl PartialEq for SimpleListItemProperties
source§fn eq(&self, other: &SimpleListItemProperties) -> bool
fn eq(&self, other: &SimpleListItemProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SimpleListItemProperties
Auto Trait Implementations§
impl Freeze for SimpleListItemProperties
impl !RefUnwindSafe for SimpleListItemProperties
impl !Send for SimpleListItemProperties
impl !Sync for SimpleListItemProperties
impl Unpin for SimpleListItemProperties
impl !UnwindSafe for SimpleListItemProperties
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> 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.