pub struct empty_state;Expand description
Renders zero-data content inside the region that holds no data.
view! { cx => empty_state(title: "No records yet", detail: "Create the first one.") }Trait Implementations§
Source§impl Component for empty_state
impl Component for empty_state
Source§type Props<'__props> = EmptyStateProps<'__props>
type Props<'__props> = EmptyStateProps<'__props>
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for empty_state
impl RefUnwindSafe for empty_state
impl Send for empty_state
impl Sync for empty_state
impl Unpin for empty_state
impl UnsafeUnpin for empty_state
impl UnwindSafe for empty_state
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