MediaQueryListEvent

package js.html

extends Event

Available on js

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 MediaQueryList.onchange property or MediaQueryList.addEvent() call.

Documentation MediaQueryListEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new(type:String, ?eventInitDict:Null<MediaQueryListEventInit>)

Throws:

null

DOMError

Variables

read onlymatches:Bool

A Boolean that returns true if the document currently matches the media query list, or false if not.

read onlymedia:String

A DOMString representing a serialized media query.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaQueryListEvent.html