🔗 Function: setProperty()
setProperty<
P
,K
,E
>(key
,reactive
):Effect
<P
,E
>
Defined in: src/lib/effects.ts:401
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
| number
| symbol
🔗 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