Library Documentation
NPM
GitHub
Preparing search index...
The search index is not available
Amplify JS API Documentation
Amplify JS API Documentation
aws-amplify
utils
<Reference Types>
DocumentAndElementEventHandlers
Interface DocumentAndElementEventHandlers
interface
DocumentAndElementEventHandlers
{
oncopy
:
null
|
(
(
this
,
ev
)
=>
any
)
;
oncut
:
null
|
(
(
this
,
ev
)
=>
any
)
;
onpaste
:
null
|
(
(
this
,
ev
)
=>
any
)
;
addEventListener
<
K
>
(
type
,
listener
,
options
?
)
:
void
;
addEventListener
(
type
,
listener
,
options
?
)
:
void
;
removeEventListener
<
K
>
(
type
,
listener
,
options
?
)
:
void
;
removeEventListener
(
type
,
listener
,
options
?
)
:
void
;
}
Hierarchy (
view full
)
DocumentAndElementEventHandlers
HTMLElement
Document
SVGElement
Index
Properties
oncopy
oncut
onpaste
Methods
add
Event
Listener
remove
Event
Listener
Properties
oncopy
oncopy
:
null
|
(
(
this
,
ev
)
=>
any
)
Type declaration
(
this
,
ev
)
:
any
Parameters
this
:
DocumentAndElementEventHandlers
ev
:
ClipboardEvent
Returns
any
oncut
oncut
:
null
|
(
(
this
,
ev
)
=>
any
)
Type declaration
(
this
,
ev
)
:
any
Parameters
this
:
DocumentAndElementEventHandlers
ev
:
ClipboardEvent
Returns
any
onpaste
onpaste
:
null
|
(
(
this
,
ev
)
=>
any
)
Type declaration
(
this
,
ev
)
:
any
Parameters
this
:
DocumentAndElementEventHandlers
ev
:
ClipboardEvent
Returns
any
Methods
add
Event
Listener
add
Event
Listener
<
K
>
(
type
,
listener
,
options
?
)
:
void
Type Parameters
K
extends
keyof
DocumentAndElementEventHandlersEventMap
Parameters
type
:
K
listener
:
(
(
this
,
ev
)
=>
any
)
(
this
,
ev
)
:
any
Parameters
this
:
DocumentAndElementEventHandlers
ev
:
DocumentAndElementEventHandlersEventMap
[
K
]
Returns
any
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
void
add
Event
Listener
(
type
,
listener
,
options
?
)
:
void
Parameters
type
:
string
listener
:
EventListenerOrEventListenerObject
Optional
options
:
boolean
|
AddEventListenerOptions
Returns
void
remove
Event
Listener
remove
Event
Listener
<
K
>
(
type
,
listener
,
options
?
)
:
void
Type Parameters
K
extends
keyof
DocumentAndElementEventHandlersEventMap
Parameters
type
:
K
listener
:
(
(
this
,
ev
)
=>
any
)
(
this
,
ev
)
:
any
Parameters
this
:
DocumentAndElementEventHandlers
ev
:
DocumentAndElementEventHandlersEventMap
[
K
]
Returns
any
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
remove
Event
Listener
(
type
,
listener
,
options
?
)
:
void
Parameters
type
:
string
listener
:
EventListenerOrEventListenerObject
Optional
options
:
boolean
|
EventListenerOptions
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
oncopy
oncut
onpaste
add
Event
Listener
remove
Event
Listener
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter