Skip to main content
You are viewing Pre-Alpha documentation.
Vuetify0 Logo
Theme
Mode
Accessibility
Vuetify

Sign in

Sign in with your preferred provider to access your account.

useEventListener API

API reference for the useEventListener composable.

Functions

useEventListener

(target: MaybeRefOrGetter<EventTarget>, event: any, listener: any, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>) => CleanupFunction

Attaches an event listener to a target.

useWindowEventListener

(event: any, listener: any, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>) => CleanupFunction

Attaches an event listener to the window.

useDocumentEventListener

(event: any, listener: any, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>) => CleanupFunction

Attaches an event listener to the document.

Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/