pub struct EmptyStateProps<'__a> {
pub title: String,
pub detail: String,
pub action: Option<Child<'__a>>,
pub attrs: Attributes,
}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.") }Fields§
§title: StringWhat is empty, e.g. "No records yet".
detail: StringOptional muted detail line.
action: Option<Child<'__a>>Optional controls under the text.
attrs: AttributesExtra attributes for the container.
Implementations§
Source§impl<'__a> EmptyStateProps<'__a>
impl<'__a> EmptyStateProps<'__a>
Sourcepub fn builder() -> EmptyStatePropsBuilder<'__a, title>
pub fn builder() -> EmptyStatePropsBuilder<'__a, title>
Returns a EmptyStatePropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for EmptyStateProps<'__a>
impl<'__a> !Sync for EmptyStateProps<'__a>
impl<'__a> !UnwindSafe for EmptyStateProps<'__a>
impl<'__a> Freeze for EmptyStateProps<'__a>
impl<'__a> Send for EmptyStateProps<'__a>
impl<'__a> Unpin for EmptyStateProps<'__a>
impl<'__a> UnsafeUnpin for EmptyStateProps<'__a>
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