Trait moxie_dom::prelude::event::Event   [−][src]
pub trait Event: AsRef<Event> + JsCast {
    type Builder: Default + EventBuilder;
    const NAME: &'static str;
    fn new() -> Self::Builder { ... }
    fn dispatch(self, target: &EventTarget) { ... }
}Expand description
An event that can be received as the first argument to a handler callback.
Associated Types
type Builder: Default + EventBuilder
type Builder: Default + EventBuilder
The builder type returned by new().
Associated Constants
Provided methods
fn dispatch(self, target: &EventTarget)
fn dispatch(self, target: &EventTarget)
Dispatch this event to the provided target.