Reflex Logo
Docs Logo
Api Reference

/

Eventhandler

Eventhandler

reflex_core.event.EventHandler

An event handler responds to an event to update the state.

Attributes: fn: The function to call in response to the event. state_full_name: The full name of the state class this event handler is attached to. Empty string means this event handler is a server side event.

Fields

PropDescription
event_actions: dict[str, bool | int] = <class 'dict'>
fn: Any = None

The function to call in response to the event.

state_full_name: str = ''

The full name of the state class this event handler is attached to. Empty string means this event handler is a server side event.

Methods

SignatureDescription
get_parameters(self) -> collections.abc.Mapping[str, inspect.Parameter]Get the parameters of the function.
Built with Reflex