Fullscreen
There are times when you want your website or App to run in fullscreen.
Quasar makes it easy by wrapping the Web Fullscreen API.
Please note that the behavior is different depending on the platform the code is running on, due to the fact that there isn’t a fixed Web standard for Web Fullscreen API yet.
Installation
Edit /quasar.conf.js
:framework: {
plugins: ['AppFullscreen']
}
Basic Usage
// outside of a Vue file |
// inside of a Vue file |
Example
Watching for fullscreen changes:// vue file
<template>...</template>
<script>
export default {
watch: {
'$q.fullscreen.isActive' (val) {
console.log(val ? 'In fullscreen now' : 'Exited fullscreen')
}
}
}
</script>