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

    [v1] How to Activate qBtnDropDown menu on mouseover

    Help
    6
    18
    3141
    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.
    • F
      folami last edited by folami

      since there are no JS event Objects option like @mouseover, mouseout etc, is there a way to activate the dropdown menu on mouseover?

      T 1 Reply Last reply Reply Quote 0
      • T
        turigeza @folami last edited by turigeza

        @folami

        Opening the menu on hover. Almost works : ) Sometimes it doesn’t open not sure why. Maybe somebody else helps you with it. Closing it is more difficult. This is Quasar V1

        <div class="q-pa-md">
                    <q-btn-dropdown color="primary" label="Dropdown Button" v-model="menu" @mouseover.native="menu = true">
                        <q-list>
                            <q-item clickable>
                                <q-item-section>
                                    <q-item-label>Photos</q-item-label>
                                </q-item-section>
                            </q-item>
        
                            <q-item clickable>
                                <q-item-section>
                                    <q-item-label>Videos</q-item-label>
                                </q-item-section>
                            </q-item>
        
                            <q-item clickable>
                                <q-item-section>
                                    <q-item-label>Articles</q-item-label>
                                </q-item-section>
                            </q-item>
                        </q-list>
                    </q-btn-dropdown>
                </div>
        
        F 1 Reply Last reply Reply Quote 0
        • F
          folami @turigeza last edited by

          @turigeza said in [v1] How to Activate qBtnDropDown menu on mouseover:

          @folami

          Opening the menu on hover. Almost works : ) Sometimes it doesn’t open not sure why. Maybe somebody else helps you with it. Closing it is more difficult. This is Quasar V1

          <div class="q-pa-md">
                      <q-btn-dropdown color="primary" label="Dropdown Button" v-model="menu" @mouseover.native="menu = true">
                          <q-list>
                              <q-item clickable>
                                  <q-item-section>
                                      <q-item-label>Photos</q-item-label>
                                  </q-item-section>
                              </q-item>
          
                              <q-item clickable>
                                  <q-item-section>
                                      <q-item-label>Videos</q-item-label>
                                  </q-item-section>
                              </q-item>
          
                              <q-item clickable>
                                  <q-item-section>
                                      <q-item-label>Articles</q-item-label>
                                  </q-item-section>
                              </q-item>
                          </q-list>
                      </q-btn-dropdown>
                  </div>
          

          #thanksAlots 🙏 👍🏽

          1 Reply Last reply Reply Quote 1
          • Hawkeye64
            Hawkeye64 last edited by

            @folami Full working demo here: https://codepen.io/Hawkeye64/pen/OqBjxM

            F 2 Replies Last reply Reply Quote 1
            • F
              folami @Hawkeye64 last edited by

              @Hawkeye64 exactly what i was looking for thanks a bunch

              1 Reply Last reply Reply Quote 0
              • F
                folami @Hawkeye64 last edited by

                @Hawkeye64 i just tried your example, it didn’t work on quasar 1.0, is there anything i can do to make work on v1.0?

                1 Reply Last reply Reply Quote 0
                • Hawkeye64
                  Hawkeye64 last edited by

                  @folami That is v1.0, but you need latest @quasar/app for it to work. Run quasar upgrade.

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    folami @Hawkeye64 last edited by folami

                    @Hawkeye64 globally or in my project folder? because I’m run
                    Pkg quasar… v1.0.0-beta.9
                    Pkg @quasar/app… v1.0.0-beta.10

                    1 Reply Last reply Reply Quote 0
                    • Hawkeye64
                      Hawkeye64 last edited by

                      @folami
                      quasar - 1.0.0-beta.11
                      @quasar/app - 1.0.0-beta.12

                      1 Reply Last reply Reply Quote 0
                      • Hawkeye64
                        Hawkeye64 last edited by

                        I just modified it so it wasn’t as bleeding edge

                        1 Reply Last reply Reply Quote 0
                        • F
                          folami last edited by

                          Working perfectly, thanks

                          1 Reply Last reply Reply Quote 1
                          • Hawkeye64
                            Hawkeye64 last edited by

                            Apparently, Razvan is thinking of incorporating this into the core (for Qmenu) so anything can be activated by the hover with new hover property. Watch for future release.

                            1 Reply Last reply Reply Quote 1
                            • kenium
                              kenium last edited by

                              It can be awesome if we can navigate through Qmenu as any hover on classical website’s menu 🙂

                              1 Reply Last reply Reply Quote 0
                              • s.molinari
                                s.molinari last edited by

                                @kenium - You can. You just have to set up the “hoverability” yourself within the button and the list items of the menu, as Hawkeye64 did here: https://codepen.io/Hawkeye64/pen/OqBjxM

                                Scott

                                1 Reply Last reply Reply Quote 0
                                • kenium
                                  kenium last edited by

                                  Hi @s-molinari Thank you but I know, I already saw it and it concerns only one level and I need 2 or 3 levels without creating additional props.

                                  1 Reply Last reply Reply Quote 0
                                  • s.molinari
                                    s.molinari last edited by

                                    Yeah, multiple levels is a bit trickier.

                                    Scott

                                    1 Reply Last reply Reply Quote 1
                                    • N
                                      Nikitoring last edited by

                                      Hi, @s-molinari How can I show menu on q-tab on mouseover? If q-tab render dymanic in v-for

                                      1 Reply Last reply Reply Quote 0
                                      • s.molinari
                                        s.molinari last edited by

                                        Show me some code in a codepen of how you think it might work. Then I can give you a suggestion.

                                        Scott

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