1👍
The element q-drawer
uses several mechanisms to be opened or closed. First and foremost the binding to the variable leftDrawerOpen
is essential. You may consider initializing it to false
in the setup
section. However, as the q-drawer
element also contains the show-if-above
directive, you should be aware that the state of this variable is ignored for larger screens (see the API docs: https://quasar.dev/layout/drawer). If the drawer should be closed regardless of screen size you should in addition remove this directive.
- [Vuejs]-Can NUXT3 observe the values of server variables in real time?
- [Vuejs]-Visualising RDF Triples using D3.js and Vue
Source:stackexchange.com