leptos_use

Function on_click_outside_with_options

Source
pub fn on_click_outside_with_options<El, T, F, I>(
    target: El,
    handler: F,
    options: OnClickOutsideOptions<I>,
) -> impl FnOnce() + Clone
where El: Clone + Into<ElementMaybeSignal<T, EventTarget>>, T: Into<EventTarget> + Clone + 'static, F: FnMut(Event) + Clone + 'static, I: Into<EventTarget> + Clone + 'static,
Expand description

Version of on_click_outside that takes an OnClickOutsideOptions. See on_click_outside for more details.