DocumentOnlyEventProps

trait DocumentOnlyEventProps[EP[_ <: DomEvent], DomEvent]

Document Events

Document Events

For type param docs see EventPropBuilder

class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val onDomContentLoaded: EP[DomEvent]

The DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading. A very different event load should be used only to detect a fully-loaded page.

The DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading. A very different event load should be used only to detect a fully-loaded page.

It is an incredibly common mistake to use load where DOMContentLoaded would be much more appropriate, so be cautious.

MDN

lazy val onFullScreenChange: EP[DomEvent]

The fullscreenchange event is fired immediately after the browser switches into or out of full-screen mode.

The fullscreenchange event is fired immediately after the browser switches into or out of full-screen mode.

MDN

lazy val onFullScreenError: EP[DomEvent]

The fullscreenerror event is fired when the browser cannot switch to full-screen mode.

The fullscreenerror event is fired when the browser cannot switch to full-screen mode.

MDN

lazy val onVisibilityChange: EP[DomEvent]

The visibilitychange event is fired when the content of a tab has become visible or has been hidden.

The visibilitychange event is fired when the content of a tab has become visible or has been hidden.

MDN