interface dom.MediaQueryList
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.17/lib/index.ts";
const { MediaQueryList } = dom;
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,