Liking cljdoc? Tell your friends :D

media.MediaQueryListEvent

The MediaQueryListEvent object stores information on the changes have happened to a media.MediaQueryList object — instances available as the event object on a function referenced by a media.MediaQueryList.onchange or media.MediaQueryList.addListener() call.

The MediaQueryListEvent object stores information on the changes
have happened to a `media.MediaQueryList` object — instances
available as the event object on a function referenced by a `media.MediaQueryList.onchange`
or `media.MediaQueryList.addListener()` call.
raw docstring

constructorcljs

Constructor.

The MediaQueryListEvent constructor creates a new MediaQueryListEvent instance.

init

An init object that defines features of the new object instance. The available properties are:

media: A dom.DOMString representing a serialized media query. matches: A web.Boolean representing the media query status — true if it matches, false if not.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/MediaQueryListEvent

Constructor.

The MediaQueryListEvent constructor creates a new MediaQueryListEvent instance.

init


An init object that defines features of the new object instance. The available properties are:


media: A `dom.DOMString` representing a serialized media query.
matches: A `web.Boolean` representing the media query status — true if it matches, false if not.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/MediaQueryListEvent`
sourceraw docstring

matchescljs

(matches this)

Property.

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

var matches = MediaQueryListEvent.matches;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches

Property.

The matches read-only property of the `media.MediaQueryListEvent`
is a `web.Boolean` that returns true if the `web.document` currently
the media query list, or false if not.

`var matches = MediaQueryListEvent.matches;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches`
sourceraw docstring

mediacljs

(media this)

Property.

The media read-only property of the media.MediaQueryListEvent is a dom.DOMString representing a serialized media query.

var media = MediaQueryListEvent.media;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media

Property.

The media read-only property of the `media.MediaQueryListEvent`
is a `dom.DOMString` representing a serialized media query.

`var media = MediaQueryListEvent.media;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media`
sourceraw docstring

set-matches!cljs

(set-matches! this val)

Property.

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

var matches = MediaQueryListEvent.matches;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches

Property.

The matches read-only property of the `media.MediaQueryListEvent`
is a `web.Boolean` that returns true if the `web.document` currently
the media query list, or false if not.

`var matches = MediaQueryListEvent.matches;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches`
sourceraw docstring

set-media!cljs

(set-media! this val)

Property.

The media read-only property of the media.MediaQueryListEvent is a dom.DOMString representing a serialized media query.

var media = MediaQueryListEvent.media;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media

Property.

The media read-only property of the `media.MediaQueryListEvent`
is a `dom.DOMString` representing a serialized media query.

`var media = MediaQueryListEvent.media;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close