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

    Close drawer from deep component in V1

    Help
    2
    3
    197
    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.
    • C
      currycode last edited by

      I have one side drawer in my app and want to close it when the user click in one of the elements inside the components in the drawer.

      I found this solution but us not working on V1

      I try with events with no luck but Im sure there will be a simple solution for this scenario.

      Thanks for the help 🙂

      1 Reply Last reply Reply Quote 0
      • C
        Coude last edited by

        Hi,

        @currycode I would say that using v-model of the drawer and click event for elements inside it, it should do the work. You have some closely related examples in the docs

         <q-drawer
                v-model="showDrawer"
              >
                <q-scroll-area class="fit">
                  <q-list>
                    <q-item clickable v-ripple @click="showDrawer = !showDrawer">
                      <q-item-section avatar>
                        <q-icon name="inbox" />
                      </q-item-section>
                   </q-item>
        (...)
                </q-list>
            </q-scroll-area>
         </q-drawer>
        
        1 Reply Last reply Reply Quote 0
        • C
          currycode last edited by

          Hi @Coude, thanks for your response.

          I can make it working in that way you propose as the component where the close action come from is very deep.
          Finally i do it using vuex with a similar approach to this one.

          Thanks!

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