No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Easier way to determine if drawer is showing due to show-if-above

    Framework
    1
    1
    33
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      walfin last edited by

      Currently, I’m using this to determine whether to hide the drawer if it is shown due to show-if-above:

      if(this.$refs.drawer.belowBreakpoint)this.left=false;
      

      The drawer’s v-model is this.left and the ref is drawer.

      However, this feels hacky. I don’t think belowBreakpoint is documented or is the “official” way to do this.

      Is there an official way to go about doing this other than using belowBreakpoint, as I don’t want my code to be broken due to a future release of quasar?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post