Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>MutationObserver

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface MutationObserver
import { type MutationObserver } from "https://deno.land/x/windmill@v1.298.0/node_modules/evt/lib/types/lib.dom.d.ts";

Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification.

Methods

disconnect(): void

Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.

observe(target: Node, options?: MutationObserverInit): void

Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).

The options argument allows for setting mutation observation options via object members.

takeRecords(): MutationRecord[]

Empties the record queue and returns what was in there.