Trait augdom::event::Event[][src]

pub trait Event: AsRef<Event> + JsCast {
    type Builder: Default + EventBuilder<Output = Self>;

    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

The builder type returned by new().

Associated Constants

The name used to register for this event in addEventListener.

Provided methods

Make a new event, returning a builder.

Dispatch this event to the provided target.

Implementors