UIElement Docs Version 0.13.1

🔗 Function: toggleAttribute()

toggleAttribute<P, E>(name, s): FxFunction<P, E>

Defined in: src/lib/effects.ts:379

Toggle a boolan attribute of an element

🔗 Type Parameters

🔗 P

P extends ComponentProps

🔗 E

E extends Element = HTMLElement

🔗 Parameters

🔗 name

string

name of attribute to be toggled

🔗 s

SignalLike<P, boolean, E> = name

state bound to the attribute existence

🔗 Returns

FxFunction<P, E>

🔗 Since

0.8.0