Skip to main content

Event

Base event payload passed to control event handlers.

Inherits: typing.Generic

Properties

  • control - The control that emitted the event.
  • data - Optional event payload data.
  • name - The event name.
  • page - Page that owns the event source control.
  • target - Internal id of the control that emitted this event.

Properties​

controlclass-attributeinstance-attribute​

control: EventControlType = field(repr=False)

The control that emitted the event.

dataclass-attributeinstance-attribute​

data: Any | None = field(default=None, kw_only=True)

Optional event payload data.

nameinstance-attribute​

name: str

The event name.

pageproperty​

page: Page

Page that owns the event source control.

targetproperty​

target: int

Internal id of the control that emitted this event.