pub struct RootProps {
pub children: Children,
pub class: String,
pub prevent_scroll: bool,
pub hide_delay: Duration,
}Expand description
Fields§
§children: Children§class: String§prevent_scroll: boolPrevent scrolling when the dialog is open
hide_delay: DurationThe timeout after which the component will be unmounted if when == false
Implementations§
source§impl RootProps
impl RootProps
sourcepub fn builder() -> RootPropsBuilder<((), (), (), ())>
pub fn builder() -> RootPropsBuilder<((), (), (), ())>
Create a builder for building RootProps.
On the builder, call .children(...), .class(...)(optional), .prevent_scroll(...)(optional), .hide_delay(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of RootProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootProps
impl !RefUnwindSafe for RootProps
impl !Send for RootProps
impl !Sync for RootProps
impl Unpin for RootProps
impl !UnwindSafe for RootProps
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more