pub struct EuvEmptyProps {
pub icon: CowText,
pub title: CowText,
pub desc: CowText,
pub action_label: CowText,
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: CowTextThe optional glyph shown above the headline (skipped when empty).
title: CowTextThe headline naming what is missing.
desc: CowTextThe optional explanation under the headline (skipped when empty).
action_label: CowTextThe 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 Forget for EuvEmptyProps
impl Freeze for EuvEmptyProps
impl Move 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