Collection of event utilities for vue3 composition api.
npm install @kadiryazici/vue-onwindow/document event handlers for Vue ^3.2.0composition api. Functions should be used only in SETUP phase.
window/document.
window.onbeforeunload.
html
`
$3
This is single handler for both online/offline events in browser.
`html
`
$3
Same as window.onhashchange.
`html
`
$3
Same as window.ondeviceorientation.
`html
`
$3
Same as window.onpopstate.
`html
`
$3
Same as window.onvisibilitychange but first parameter is visibility state.
`html
`
$3
Same as window.onpaste.
`html
``