Reflex Logo

Intro

Gallery

Hosting

Learn

Components

Recipes

API Reference

Onboarding
Hosting

Api-reference

/

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.

PropDescription
handler: EventHandler

The event handler.

client_handler_name: str

The handler on the client to process event.

args: Tuple

The arguments to pass to the function.

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

Did you find this useful?

HomeGalleryChangelogIntroductionHosting