Home > @holoflows/kit > MutationObserverWatcher
A watcher based on MutationObserver
Signature:
export declare class MutationObserverWatcher<T, Before extends Element = HTMLSpanElement, After extends Element = HTMLSpanElement, SingleMode extends boolean = false> extends Watcher<T, Before, After, SingleMode>
Extends: Watcher<T, Before, After, SingleMode>
new MutationObserverWatcher(ls)
.useForeach(node => {
console.log(node)
})
.startWatch()
Constructor |
Modifiers |
Description |
---|---|---|
(constructor)(liveSelector, consistentWatchRoot, stopWatchOnDisconnected) |
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
LiveSelector<T, SingleMode> |
LiveSelector that this object holds |
Method |
Modifiers |
Description |
---|---|---|
| ||
Start an MutationObserverWatcher. | ||
Stop the watcher |