interface MediaQueryList
implements EventTarget
import { type MediaQueryList } from "https://deno.land/x/evt@v2.4.22/lib/types/lib.dom.ts";
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).
Properties
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null
Methods
deprecated
addListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): voiddeprecated
removeListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): voidaddEventListener<K extends keyof MediaQueryListEventMap>(): void
type: K,
listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof MediaQueryListEventMap>(): void
type: K,
listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any,
options?: boolean | EventListenerOptions,