pub struct EuvLinkProps {
pub text: &'static str,
pub href: &'static str,
pub disabled: bool,
pub on_click: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_link component.
Defines the strongly-typed interface for a link: the text, the destination it points at, and whether it is currently disabled.
Fields§
§text: &'static strThe link text.
href: &'static strThe destination the link points at.
An empty string renders the link as a plain span with no destination — the shape a disabled or in-page action takes.
disabled: boolWhether the link is disabled.
on_click: Option<Rc<dyn Fn(Event)>>The callback fired when the link is taken.
Trait Implementations§
Source§impl Clone for EuvLinkProps
impl Clone for EuvLinkProps
Source§impl Debug for EuvLinkProps
impl Debug for EuvLinkProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvLinkProps
impl !Send for EuvLinkProps
impl !Sync for EuvLinkProps
impl !UnwindSafe for EuvLinkProps
impl Freeze for EuvLinkProps
impl Unpin for EuvLinkProps
impl UnsafeUnpin for EuvLinkProps
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