leptos_use

Function use_intersection_observer_with_options

Source
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