Name of the DOM event to listen to
Optional target to add the DOM listener to. If not provided, the target is document
.
Listener to be called when the DOM event occurs
Optional
useCapture: booleanOptional, defaults to false. If true, add the listener as a capturing listener.
Optional
useCapture: booleanAdds a DOM event listener that will get cleaned up when this component is cleaned up.
Name of the DOM event to listen to
Optional target to add the DOM listener to. If not provided, the target is document
.
Listener to be called when the DOM event occurs
Optional
useCapture: booleanOptional, defaults to false. If true, add the listener as a capturing listener.
Optional
useCapture: booleanAdds a one-time DOM event listener that will get cleaned up when this component is cleaned up.
Name of the DOM event to listen to
Optional target to add the DOM listener to. If not provided, the target is document
.
Listener to be called when the DOM event occurs
Optional
useCapture: booleanOptional, defaults to false. If true, add the listener as a capturing listener.
Optional
useCapture: booleanRemoves a DOM event listener that was added via #addListener
, #on
, or #once
, using the same
parameters as those methods.
Name of the DOM event
Optional target for the DOM listener. If not provided, the target is document
.
Listener function that was passed to #addListener
, #on
, or #once
.
Optional
useCapture: booleanOptional, defaults to false. If true, removes a capturing listener.
Optional
useCapture: boolean
Adds a DOM event listener that will get cleaned up when this component is cleaned up.