WindowOnlyEventProps

trait WindowOnlyEventProps[EP[_ <: DomEvent], DomEvent, DomUIEvent <: DomEvent, DomBeforeUnloadEvent <: DomEvent, DomHashChangeEvent <: DomEvent, DomMessageEvent <: DomEvent, DomPageTransitionEvent <: DomEvent, DomPopStateEvent <: DomEvent, DomStorageEvent <: DomEvent]

Window Events

Window Events

For type param docs see EventPropBuilder

class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val onAfterPrint: EP[DomEvent]

Script to be run after the document is printed

Script to be run after the document is printed

lazy val onBeforePrint: EP[DomEvent]

Script to be run before the document is printed

Script to be run before the document is printed

lazy val onBeforeUnload: EP[DomBeforeUnloadEvent]

Script to be run when the document is about to be unloaded

Script to be run when the document is about to be unloaded

lazy val onHashChange: EP[DomHashChangeEvent]

Script to be run when there has been changes to the anchor part of the a URL

Script to be run when there has been changes to the anchor part of the a URL

lazy val onMessage: EP[DomMessageEvent]

Script to be run when an object receives a message

Script to be run when an object receives a message

lazy val onMessageError: EP[DomMessageEvent]

Script to be run when an object receives a message that cannot be deserialized and therefore raises an error

Script to be run when an object receives a message that cannot be deserialized and therefore raises an error

lazy val onOffline: EP[DomEvent]

Script to be run when the browser starts to work offline

Script to be run when the browser starts to work offline

lazy val onOnline: EP[DomEvent]

Script to be run when the browser starts to work online

Script to be run when the browser starts to work online

lazy val onPageHide: EP[DomPageTransitionEvent]

Script to be run when a user navigates away from a page

Script to be run when a user navigates away from a page

lazy val onPageShow: EP[DomPageTransitionEvent]

Script to be run when a user navigates to a page

Script to be run when a user navigates to a page

lazy val onPopState: EP[DomPopStateEvent]

Script to be run when the window's history changes

Script to be run when the window's history changes

lazy val onStorage: EP[DomStorageEvent]

Script to be run when a Web Storage area is updated

Script to be run when a Web Storage area is updated

lazy val onUnload: EP[DomUIEvent]

Fires once a page has unloaded (or the browser window has been closed)

Fires once a page has unloaded (or the browser window has been closed)