Preparing search index...
The search index is not available
@zeix/ui-element
@zeix/ui-element
setAttribute
Function setAttribute
Set attribute of an element
Since
0.8.0
setAttribute
<
P
extends
ComponentProps
,
E
extends
Element
=
HTMLElement
>
(
name
:
string
,
s
?:
SignalLike
<
P
,
string
,
E
>
,
)
:
FxFunction
<
P
,
E
>
Type Parameters
P
extends
ComponentProps
E
extends
Element
=
HTMLElement
Parameters
name
:
string
name of attribute to be set
s
:
SignalLike
<
P
,
string
,
E
>
= name
state bound to the attribute value
Returns
FxFunction
<
P
,
E
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@zeix/ui-element
Loading...
Set attribute of an element
Since
0.8.0