Function leptos_dom::helpers::window_event_listener
source · pub fn window_event_listener(event_name: &str, cb: impl Fn(Event) + 'static)
Expand description
Adds an event listener to the Window
.
pub fn window_event_listener(event_name: &str, cb: impl Fn(Event) + 'static)
Adds an event listener to the Window
.