Skip to content
0

katanakit-js / useObserverObserveAll

Function: useObserverObserveAll() ​

ts
function useObserverObserveAll(key, selector): void;

Defined in: src/infrastructure/observer/observer.service.ts:137

Observes all elements matching a CSS selector under an existing observer key.

Parameters ​

ParameterTypeDescription
keystringThe observer key created via useObserverCreate.
selectorstringA CSS selector string matching all elements to observe.

Returns ​

void

Example ​

ts
useObserverObserveAll("images", "img.lazy");

Released under the MIT License.