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

    How to remove dropdown icon from QBtnDropdown?

    Help
    3
    6
    2779
    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.
    • A
      Abdullah Sohail last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        The icons are defined on $q.

        https://codepen.io/smolinari/pen/gOaoPEm?editors=1010

        Scott

        1 Reply Last reply Reply Quote 0
        • A
          Abdullah Sohail last edited by

          @s-molinari we can acheive the same by specifying dropdown-icon=" " as a prop but the actual problem is how to get rid of the space occupied by it, the space is still there .Actually i am trying to center the label on the button

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

            Ok. Then don’t use QBtn-Dropdown and roll your own dropdown with QMenu.

            https://quasar.dev/vue-components/menu

            Scott

            1 Reply Last reply Reply Quote 0
            • T
              tof06 last edited by

              @Abdullah-Sohail Solution provided by @s-molinari is the best and cleaner way to do, imo.
              But, if you really really want to use a q-btn-dropdown, you can hide the dropdown icon by css :

              button.without-icon i { 
                display: none
              }
              

              and add without-icon class to your q-btn-dropdown

              1 Reply Last reply Reply Quote 0
              • A
                Abdullah Sohail last edited by

                thanks @s-molinari and @tof06

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