PageEventMap Interface
PageEventMap is an interface used to provide type-safe event listeners and is not instantiated or used directly. It maps event names to their corresponding event object types and is consumed by addEventListener to ensure correct typing of listener callbacks.
export declare interface PageEventMap
Remarks
This interface defines the structure of events that can be emitted by the Page class, specifically the pageChanging event which is triggered when the current page is about to change.
Fields
pageChanging
Event triggered when the current page is about to change.
pageChanging: PageChangingEvent;
Field Value
Remarks
This event is emitted before navigating to a new page, allowing listeners to cancel or modify the navigation. The event contains information about both the previous and target pages.