pub fn use_intersection_observer_with_options<El, T, RootEl, RootT, F>(
target: El,
callback: F,
options: UseIntersectionObserverOptions<RootEl, RootT>,
) -> UseIntersectionObserverReturn<impl Fn() + Clone, impl Fn() + Clone, impl Fn() + Clone>where
El: Into<ElementsMaybeSignal<T, Element>>,
T: Into<Element> + Clone + 'static,
RootEl: Into<ElementMaybeSignal<RootT, Element>>,
RootT: Into<Element> + Clone + 'static,
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.