Skip to content

PageResizeEvent

PageResizeEvent #

Bases: Event['PageView']

Event fired when the size of the containing window or browser is changed.

Typically used to adapt layout dynamically in response to resizes, such as switching between compact and expanded views in a responsive design.

control #

control: EventControlType = field(repr=False)

data #

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

height #

height: float

The new height of the page in logical pixels.

name #

name: str

page #

page: Page | PageView | None

target #

target: int

width #

width: float

The new width of the page in logical pixels.