Struct yewprint::MenuItemProps
source · pub struct MenuItemProps {
pub text: Html,
pub text_class: Classes,
pub active: bool,
pub class: Classes,
pub disabled: bool,
pub href: Option<AttrValue>,
pub label: Option<Html>,
pub label_class: Classes,
pub intent: Option<Intent>,
pub icon: Option<Icon>,
pub icon_html: Option<Html>,
pub onclick: Callback<MouseEvent>,
}
Fields§
§text: Html
§text_class: Classes
§active: bool
§class: Classes
§disabled: bool
§href: Option<AttrValue>
§label: Option<Html>
§label_class: Classes
§intent: Option<Intent>
§icon: Option<Icon>
§icon_html: Option<Html>
§onclick: Callback<MouseEvent>
Trait Implementations§
source§impl Clone for MenuItemProps
impl Clone for MenuItemProps
source§fn clone(&self) -> MenuItemProps
fn clone(&self) -> MenuItemProps
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 PartialEq for MenuItemProps
impl PartialEq for MenuItemProps
source§fn eq(&self, other: &MenuItemProps) -> bool
fn eq(&self, other: &MenuItemProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for MenuItemProps
impl Properties for MenuItemProps
impl StructuralPartialEq for MenuItemProps
Auto Trait Implementations§
impl !RefUnwindSafe for MenuItemProps
impl !Send for MenuItemProps
impl !Sync for MenuItemProps
impl Unpin for MenuItemProps
impl !UnwindSafe for MenuItemProps
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.