Skip to content

enum

Listener

pub enum Listener {
    Call(Path, Vec<Expr>),
    Steps(Vec<Action>),
}

What a window event does.

Variants

Call

Call(Path, Vec<Expr>)

@resize: measure or @keydown: press(event.key): a handler in the scope, with values for its parameters (computed when the event happens, so they can read event).

Steps

Steps(Vec<Action>)

@resize: width <- event.innerWidth, …: steps, as an on handler's.

Trait implementations