Eventspec

reflex.event.EventSpec

An event specification.

Whereas an Event object is passed during runtime, a spec is used during compile time to outline the structure of an event.

Fields

PropDescription
handler: EventHandler = None

The event handler.

client_handler_name: str = ''

The handler on the client to process event.

args: tuple

The arguments to pass to the function.

Methods

SignatureDescription
with_args(self, args: tuple[tuple[reflex.vars.base.Var, reflex.vars.base.Var], ...]) -> 'EventSpec'Copy the event spec, with updated args.
add_args(self, *args: reflex.vars.base.Var) -> 'EventSpec'Add arguments to the event spec.

Built with Reflex