Home > @holoflows/kit > EventWatcher
A Watcher based on event handlers.
Signature:
export declare class EventWatcher<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>
const e = new EventWatcher(ls).useForeach(node => console.log(node))
document.addEventListener('event', e.eventListener)
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
() => void |
Use this function as event listener to invoke watcher. |
Method |
Modifiers |
Description |
---|---|---|