pub fn use_intersection_observer_with_options<Els, M, RootEl, RootM, F>(
target: Els,
callback: F,
options: UseIntersectionObserverOptions<RootEl, RootM>,
) -> UseIntersectionObserverReturn<impl Fn() + Clone + Send + Sync, impl Fn() + Clone + Send + Sync, impl Fn() + Clone + Send + Sync>where
Els: IntoElementsMaybeSignal<Element, M>,
RootEl: IntoElementMaybeSignal<Element, RootM>,
F: FnMut(Vec<IntersectionObserverEntry>, IntersectionObserver) + 'static,
Expand description
Version of use_intersection_observer
that takes a UseIntersectionObserverOptions
. See use_intersection_observer
for how to use.