Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true).

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

matches

matches: boolean

media

media: string

onchange

onchange: function | null

Methods

addEventListener

addListener

  • addListener(listener: function | null): void
  • deprecated

    Parameters

    • listener: function | null

    Returns void

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

removeEventListener

removeListener

  • removeListener(listener: function | null): void
  • deprecated

    Parameters

    • listener: function | null

    Returns void

Generated using TypeDoc