@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MutationObserver")
public class MutationObserver
extends JsObject
| Constructor and Description |
|---|
MutationObserver(MutationCallback callback)
The DOM MutationObserver() constructor — part of the MutationObserver interface — creates and returns a new observer which invokes a specified callback when DOM events occur.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
The MutationObserver method disconnect() tells the observer to stop watching for mutations.
|
void |
observe(Node target)
The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that match the given options.
|
void |
observe(Node target,
MutationObserverInit options)
The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that match the given options.
|
@JsNonNull JsArray<MutationRecord> |
takeRecords()
The MutationObserver method takeRecords() returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic MutationObserver(@Nonnull
MutationCallback callback)
public void disconnect()
public void observe(@Nonnull
Node target,
@Nonnull
MutationObserverInit options)
public void observe(@Nonnull
Node target)
public @JsNonNull JsArray<MutationRecord> takeRecords()