UIElement Docs Version 0.14.0

🔗 Function: fromSelector()

🔗 Call Signature

fromSelector<S, C>(selector): Extractor<Computed<ElementFromSelector<S>[]>, C>

Defined in: src/core/dom.ts:442

Produce a computed signal of an array of elements matching a selector

🔗 Type Parameters

🔗 S

S extends string

🔗 C

C extends HTMLElement = HTMLElement

🔗 Parameters

🔗 selector

S

CSS selector for descendant elements

🔗 Returns

Extractor<Computed<ElementFromSelector<S>[]>, C>

Signal producer for descendant element collection from a selector

🔗 Since

0.13.1

🔗 Throws

If observed mutations would trigger infinite mutation cycles

🔗 Call Signature

fromSelector<E, C>(selector): Extractor<Computed<E[]>, C>

Defined in: src/core/dom.ts:445

Produce a computed signal of an array of elements matching a selector

🔗 Type Parameters

🔗 E

E extends Element

🔗 C

C extends HTMLElement = HTMLElement

🔗 Parameters

🔗 selector

string

CSS selector for descendant elements

🔗 Returns

Extractor<Computed<E[]>, C>

Signal producer for descendant element collection from a selector

🔗 Since

0.13.1

🔗 Throws

If observed mutations would trigger infinite mutation cycles