pub struct BottomSheet<Node, Message> {
pub content: Node,
pub height: SheetHeight,
/* private fields */
}Expand description
A sheet that slides up from the bottom of the window.
Like Dialog, a sheet is content only. The dim backdrop and its
outside-click-to-close behavior are owned by the parent crate::AppLayout.
Fields§
§content: Node§height: SheetHeightImplementations§
Source§impl<Node, Message> BottomSheet<Node, Message>
impl<Node, Message> BottomSheet<Node, Message>
Sourcepub fn new(content: Node) -> Self
pub fn new(content: Node) -> Self
Build a sheet with SheetHeight::DEFAULT.
Sourcepub fn with_height(self, height: SheetHeight) -> Self
pub fn with_height(self, height: SheetHeight) -> Self
Override the height.
Auto Trait Implementations§
impl<Node, Message> Freeze for BottomSheet<Node, Message>where
Node: Freeze,
impl<Node, Message> RefUnwindSafe for BottomSheet<Node, Message>where
Node: RefUnwindSafe,
Message: RefUnwindSafe,
impl<Node, Message> Send for BottomSheet<Node, Message>
impl<Node, Message> Sync for BottomSheet<Node, Message>
impl<Node, Message> Unpin for BottomSheet<Node, Message>
impl<Node, Message> UnsafeUnpin for BottomSheet<Node, Message>where
Node: UnsafeUnpin,
impl<Node, Message> UnwindSafe for BottomSheet<Node, Message>where
Node: UnwindSafe,
Message: UnwindSafe,
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