Bases: object
Fires when the active page changes (mount, will-mount, change).
-
can_back: bool
Whether there is a previous page to go back to.
-
can_forward: bool
Whether there is a next page to go forward to.
-
data: dict[str, Any]
Arbitrary data passed to navigate(key, data=...).
-
index: int
Position of this page in the navigation history.
-
length: int
Total length of the navigation history.
-
nav: Any
Navigation direction/context for this transition, if any.
-
page: str
The key of the page now active.
-
prev_data: Any
The data the previous page was navigated with.
-
prev_page: str | None
The key of the previously active page, or None.