Skip to content

Latest commit

 

History

History
167 lines (79 loc) · 2.19 KB

kit.mutationobserverwatcher.md

File metadata and controls

167 lines (79 loc) · 2.19 KB

Home > @holoflows/kit > MutationObserverWatcher

MutationObserverWatcher class

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>

Example

new MutationObserverWatcher(ls)
    .useForeach(node => {
        console.log(node)
    })
    .startWatch()

Constructors

Constructor

Modifiers

Description

(constructor)(liveSelector, consistentWatchRoot, stopWatchOnDisconnected)

Constructs a new instance of the MutationObserverWatcher class

Properties

Property

Modifiers

Type

Description

liveSelector

protected

LiveSelector<T, SingleMode>

LiveSelector that this object holds

Methods

Method

Modifiers

Description

defaultStarterForThen()

protected

startWatch(options, signal)

Start an MutationObserverWatcher.

stopWatch()

Stop the watcher