pub struct EuvBadgeProps {
pub outline: bool,
pub text: &'static str,
pub on_click: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_badge component.
Defines the strongly-typed interface for the badge status indicator.
Fields§
§outline: boolWhether to render in outline style instead of solid fill.
text: &'static strThe badge text content.
on_click: Option<Rc<dyn Fn(Event)>>Optional click event handler.
Implementations§
Source§impl EuvBadgeProps
impl EuvBadgeProps
pub fn get_outline(&self) -> bool
pub fn get_mut_outline(&mut self) -> &mut bool
pub fn set_outline(&mut self, val: bool) -> &mut Self
pub fn get_text(&self) -> &'static str
pub fn get_mut_text(&mut self) -> &mut &'static str
pub fn set_text(&mut self, val: &'static str) -> &mut Self
pub fn get_on_click(&self) -> Rc<dyn Fn(Event)>
pub fn try_get_on_click(&self) -> &Option<Rc<dyn Fn(Event)>>
pub fn get_mut_on_click(&mut self) -> &mut Option<Rc<dyn Fn(Event)>>
pub fn set_on_click(&mut self, val: Option<Rc<dyn Fn(Event)>>) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvBadgeProps
impl Clone for EuvBadgeProps
Source§fn clone(&self) -> EuvBadgeProps
fn clone(&self) -> EuvBadgeProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EuvBadgeProps
impl Debug for EuvBadgeProps
Source§impl Default for EuvBadgeProps
impl Default for EuvBadgeProps
Source§fn default() -> EuvBadgeProps
fn default() -> EuvBadgeProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvBadgeProps
impl !Send for EuvBadgeProps
impl !Sync for EuvBadgeProps
impl !UnwindSafe for EuvBadgeProps
impl Freeze for EuvBadgeProps
impl Unpin for EuvBadgeProps
impl UnsafeUnpin for EuvBadgeProps
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