PageSwapEvent

open class PageSwapEvent(val type: EventType<PageSwapEvent>, init: PageSwapEventInit = definedExternally) : Event(source)

The PageSwapEvent event object is made available inside handler functions for the pageswap event.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<PageSwapEvent>, init: PageSwapEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open external val activation: NavigationActivation?

The activation read-only property of the PageSwapEvent interface contains a NavigationActivation object containing the navigation type and current and destination document history entries for a same-origin navigation.

Link copied to clipboard
open external val bubbles: Boolean
Link copied to clipboard
open external val cancelable: Boolean
Link copied to clipboard
open external val composed: Boolean
Link copied to clipboard
open external val currentTarget: EventTarget?
Link copied to clipboard
open external val defaultPrevented: Boolean
Link copied to clipboard
open external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
open external val target: EventTarget?
Link copied to clipboard
open external val timeStamp: DOMHighResTimeStamp
Link copied to clipboard
open external override val type: EventType<PageSwapEvent>
Link copied to clipboard
open external val viewTransition: ViewTransition?

The viewTransition read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.

Functions

Link copied to clipboard
open external fun composedPath(): ReadonlyArray<EventTarget>
Link copied to clipboard
open external fun preventDefault()
Link copied to clipboard
open external fun stopImmediatePropagation()
Link copied to clipboard
open external fun stopPropagation()