Preparing search index...
The search index is not available
@zeix/ui-element
@zeix/ui-element
on
Function on
Attach an event listener to an element
Since
0.12.0
Throws
if the provided handler is not an event listener or a provider function
on
<
E
extends
Event
>
(
type
:
string
,
listener
:
(
evt
:
E
)
=>
void
,
)
:
<
P
extends
ComponentProps
>
(
host
:
Component
<
P
>
,
target
?:
Element
,
)
=>
Cleanup
Type Parameters
E
extends
Event
Parameters
type
:
string
event type to listen for
listener
:
(
evt
:
E
)
=>
void
event listener
Returns
<
P
extends
ComponentProps
>
(
host
:
Component
<
P
>
,
target
?:
Element
)
=>
Cleanup
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@zeix/ui-element
Loading...
Attach an event listener to an element
Since
0.12.0
Throws