pub struct SheetProps<'__a> {
pub open: Expr<bool>,
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
A panel that slides in from an edge of the page.
Pass a boolean to open for a fixed state, or a runtime expression to control it in
the browser. Like dialog, it needs application scripting
for focus trapping and Escape dismissal.
Pass a sheet_content panel as children and choose its edge with side. Use dialog
components to arrange its contents. attrs are forwarded to the <dialog>, with
extra classes added to its classes.
ⓘ
view! {
sheet(
open: filtering,
sheet_content(
dialog_header(
dialog_title("Filters")
dialog_description("Narrow the deployments below.")
)
(fields)
)
)
}Fields§
§open: Expr<bool>Whether the sheet shows.
attrs: AttributesExtra attributes for the <dialog> element.
child: Child<'__a>The sheet’s content.
Implementations§
Source§impl<'__a> SheetProps<'__a>
impl<'__a> SheetProps<'__a>
Sourcepub fn builder() -> SheetPropsBuilder<'__a, open>
pub fn builder() -> SheetPropsBuilder<'__a, open>
Returns a SheetPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for SheetProps<'__a>
impl<'__a> !Sync for SheetProps<'__a>
impl<'__a> !UnwindSafe for SheetProps<'__a>
impl<'__a> Freeze for SheetProps<'__a>
impl<'__a> Send for SheetProps<'__a>
impl<'__a> Unpin for SheetProps<'__a>
impl<'__a> UnsafeUnpin for SheetProps<'__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