🔗 Function: setProperty()
setProperty<
P,K,E>(key,reactive):Effect<P,E>
Defined in: src/lib/effects.ts:296
Effect for setting a property on an element.
Sets the specified property directly on the element object.
🔗 Type Parameters
🔗 P
P extends ComponentProps
🔗 K
K extends string
🔗 E
E extends Element = HTMLElement
🔗 Parameters
🔗 key
K
Name of the property to set
🔗 reactive
Reactive<E[K], P, E> = ...
Reactive value bound to the property value (defaults to property name)
🔗 Returns
Effect<P, E>
Effect function that sets the property on the element
🔗 Since
0.8.0