EventHandler

Type Alias EventHandler 

Source
pub type EventHandler = Box<dyn Fn(Event) + Send + Sync + 'static>;
Expand description

Event handlers are basically just closures that take a web_sys::Event as an argument. This type only provides a convenience for implementing the actual render-functions.

Aliased Typeยง

pub struct EventHandler(/* private fields */);