For AI agents: the complete documentation index is at llms.txt. Markdown versions are available by appending .md or sending Accept: text/markdown.
Reflex Logo
Docs Logo
Api Reference

/

Eventhandler

Eventhandler

reflex_base.event.EventHandler

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

Fields

PropDescription
event_actions: dict[str, bool | int] = {}
fn: Any = None

The function to call in response to the event.

state: Optional[type[BaseState]] = None

The state this EventHandler is directly attached to, if any.

Methods

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