Struct leptos_use::UseElementBoundingOptions
source · pub struct UseElementBoundingOptions {
pub reset: bool,
pub window_resize: bool,
pub window_scroll: bool,
pub immediate: bool,
}
Expand description
Options for use_element_bounding_with_options
.
Fields§
§reset: bool
Reset values to 0 on component disposal
Default: true
window_resize: bool
Listen to window resize event
Default: true
window_scroll: bool
Listen to window scroll event
Default: true
immediate: bool
Immediately call update
Default: true
Implementations§
source§impl UseElementBoundingOptions
impl UseElementBoundingOptions
sourcepub fn window_resize(self, value: bool) -> Self
pub fn window_resize(self, value: bool) -> Self
Listen to window resize event
Default: true
sourcepub fn window_scroll(self, value: bool) -> Self
pub fn window_scroll(self, value: bool) -> Self
Listen to window scroll event
Default: true
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UseElementBoundingOptions
impl RefUnwindSafe for UseElementBoundingOptions
impl Send for UseElementBoundingOptions
impl Sync for UseElementBoundingOptions
impl Unpin for UseElementBoundingOptions
impl UnwindSafe for UseElementBoundingOptions
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