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
>
(
name
:
string
,
s
?:
SignalLike
<
P
,
E
,
string
>
,
)
:
(
host
:
Component
<
P
>
,
target
:
E
)
=>
Cleanup
Type Parameters
P
extends
ComponentProps
E
extends
Element
Parameters
name
:
string
name of attribute to be set
s
:
SignalLike
<
P
,
E
,
string
>
= name
state bound to the attribute value
Returns
(
host
:
Component
<
P
>
,
target
:
E
)
=>
Cleanup
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@zeix/ui-element
Loading...
Set attribute of an element
Since
0.8.0