interface DOMWatcherConfig {
    root?: null | Element;
    subtree?: boolean;
}

Properties

Properties

root?: null | Element

The root element to observe for changes.

It cannot be overridden on a per-callback basis.

document.body
subtree?: boolean

Whether to observe root's subtree for changes or just direct descendants.

It cannot be overridden on a per-callback basis.

true