🔗 Function: setText()
setText<
P,E>(reactive):Effect<P,E>
Defined in: src/lib/effects.ts:273
Effect for setting the text content of an element.
Replaces all child nodes (except comments) with a single text node.
🔗 Type Parameters
🔗 P
P extends ComponentProps
🔗 E
E extends Element = HTMLElement
🔗 Parameters
🔗 reactive
Reactive<string, P, E>
Reactive value bound to the text content
🔗 Returns
Effect<P, E>
Effect function that sets the text content of the element
🔗 Since
0.8.0