pub struct UseInfiniteScrollOptions { /* private fields */ }
Expand description
Options for use_infinite_scroll_with_options
.
Implementations§
Source§impl UseInfiniteScrollOptions
impl UseInfiniteScrollOptions
Sourcepub fn on_scroll(self, value: impl Fn(Event) + 'static) -> Self
pub fn on_scroll(self, value: impl Fn(Event) + 'static) -> Self
Callback when scrolling is happening.
Sourcepub fn event_listener_options(self, value: UseEventListenerOptions) -> Self
pub fn event_listener_options(self, value: UseEventListenerOptions) -> Self
Options passed to the addEventListener("scroll", ...)
call
Sourcepub fn distance(self, value: f64) -> Self
pub fn distance(self, value: f64) -> Self
The minimum distance between the bottom of the element and the bottom of the viewport. Default is 0.0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UseInfiniteScrollOptions
impl !RefUnwindSafe for UseInfiniteScrollOptions
impl !Send for UseInfiniteScrollOptions
impl !Sync for UseInfiniteScrollOptions
impl Unpin for UseInfiniteScrollOptions
impl !UnwindSafe for UseInfiniteScrollOptions
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