Optional
getOptional
isIf true, disables the event listener.
The event listener function to be executed when the event occurs.
Optional
optionsOptions for the event listener (e.g., capture, passive).
A reference to the target element to which the event listener will be attached.
The type of event to listen for.
A function that returns a boolean indicating whether the hook should be disabled.