MediaQueryListEvent

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

The MediaQueryListEvent object stores information on the changes that have happened to a MediaQueryList object — instances are available as the event object on a function referenced by a change event.

MDN Reference

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val matches: Boolean

The matches read-only property of the MediaQueryListEvent interface is a boolean value that is true if the document currently matches the media query list, or false if not.

Link copied to clipboard
external val media: MediaQuery

The media read-only property of the MediaQueryListEvent interface is a string representing a serialized media query.

Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<MediaQueryListEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()