@wopjs/dom - v0.1.3
Preparing search index...
addEventListener
Function addEventListener
addEventListener
<
K
extends
keyof
WindowEventMap
>
(
target
:
Window
,
type
:
K
,
listener
:
(
this
:
Window
,
ev
:
WindowEventMap
[
K
]
)
=>
unknown
,
options
?:
boolean
|
AddEventListenerOptions
,
)
:
()
=>
void
Type Parameters
K
extends
keyof
WindowEventMap
Parameters
target
:
Window
type
:
K
listener
:
(
this
:
Window
,
ev
:
WindowEventMap
[
K
]
)
=>
unknown
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
()
=>
void
addEventListener
<
K
extends
keyof
DocumentEventMap
>
(
target
:
Document
,
type
:
K
,
listener
:
(
this
:
Document
,
ev
:
DocumentEventMap
[
K
]
)
=>
unknown
,
options
?:
boolean
|
AddEventListenerOptions
,
)
:
()
=>
void
Type Parameters
K
extends
keyof
DocumentEventMap
Parameters
target
:
Document
type
:
K
listener
:
(
this
:
Document
,
ev
:
DocumentEventMap
[
K
]
)
=>
unknown
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
()
=>
void
addEventListener
<
K
extends
keyof
HTMLElementEventMap
>
(
target
:
HTMLElement
,
type
:
K
,
listener
:
(
this
:
HTMLElement
,
ev
:
HTMLElementEventMap
[
K
]
)
=>
unknown
,
options
?:
boolean
|
AddEventListenerOptions
,
)
:
()
=>
void
Type Parameters
K
extends
keyof
HTMLElementEventMap
Parameters
target
:
HTMLElement
type
:
K
listener
:
(
this
:
HTMLElement
,
ev
:
HTMLElementEventMap
[
K
]
)
=>
unknown
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
()
=>
void
addEventListener
<
K
extends
"change"
>
(
target
:
MediaQueryList
,
type
:
K
,
listener
:
(
this
:
HTMLElement
,
ev
:
MediaQueryListEventMap
[
K
]
)
=>
unknown
,
options
?:
boolean
|
AddEventListenerOptions
,
)
:
()
=>
void
Type Parameters
K
extends
"change"
Parameters
target
:
MediaQueryList
type
:
K
listener
:
(
this
:
HTMLElement
,
ev
:
MediaQueryListEventMap
[
K
]
)
=>
unknown
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
()
=>
void
Settings
Theme
OS
Light
Dark
@wopjs/dom - v0.1.3
Loading...