pub struct EuvEmptyProps {
pub icon: &'static str,
pub title: &'static str,
pub desc: &'static str,
pub action_label: &'static str,
pub on_action: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_empty component.
Defines the strongly-typed interface for an empty state: the glyph that marks the emptiness, the headline, the explanation, and an optional action that offers the reader a way out of it.
Fields§
§icon: &'static strThe optional glyph shown above the headline (skipped when empty).
title: &'static strThe headline naming what is missing.
desc: &'static strThe optional explanation under the headline (skipped when empty).
action_label: &'static strThe optional action label (skipped when empty).
on_action: Option<Rc<dyn Fn(Event)>>The callback fired when the action is taken.
Trait Implementations§
Source§impl Clone for EuvEmptyProps
impl Clone for EuvEmptyProps
Source§impl Debug for EuvEmptyProps
impl Debug for EuvEmptyProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvEmptyProps
impl !Send for EuvEmptyProps
impl !Sync for EuvEmptyProps
impl !UnwindSafe for EuvEmptyProps
impl Freeze for EuvEmptyProps
impl Unpin for EuvEmptyProps
impl UnsafeUnpin for EuvEmptyProps
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