pub struct sheet;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)
)
)
}Trait Implementations§
Source§impl Component for sheet
impl Component for sheet
Source§type Props<'__props> = SheetProps<'__props>
type Props<'__props> = SheetProps<'__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 sheet
impl RefUnwindSafe for sheet
impl Send for sheet
impl Sync for sheet
impl Unpin for sheet
impl UnsafeUnpin for sheet
impl UnwindSafe for sheet
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