Skip to content

struct

EventBinding

pub struct EventBinding {
    pub event: String,
    pub handler: Path,
    pub args: Vec<Expr>,
}

@event: handler inside an element's parentheses.

Fields

event

pub event: String

The event's name, without the @.

handler

pub handler: Path

The handler's name in the scope.

args

pub args: Vec<Expr>

@click: remove(t.id): values for the handler's parameters, computed when the event happens (so they can read event, and the loop variables where the binding is).

Trait implementations