[][src]Function seed::browser::dom::event_handler::ev

pub fn ev<Ms>(
    trigger: impl Into<Ev>,
    handler: impl FnOnce(Event) -> Ms + 'static + Clone
) -> EventHandler<Ms>

Create an event handler that accepts a closure, and passes a web_sys::Event, allowing full control of event-handling.