Disable q-menu for some breakpoints
-
Hi all,
any ideas how I can disable a q-menu for some breakpoints? For example:
I want the q-menu only to appear when the viewport is larger than md.I tried to use the visibility classes like
<q-menu class="gt-lg">
but the menu is still shown when clicking on the parent.Any pointer is appreciated!
-
@perelin use https://quasar.dev/options/screen-plugin along with
v-if
. -
Brilliant! https://quasar.dev/options/screen-plugin was Exactly what I needed
Thx!
It might be helpful for some people to add a hint to this to https://quasar.dev/style/visibility#Window-Width-Related - Ill create a PR for this.
-
@perelin sorry, just noticed I messed up the link above.