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

    QMenu and QBtnDropdown. How?

    Framework
    2
    3
    145
    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.
    • G
      gstas last edited by

      Hi! Faced the problem of using the QMenu and QBtnDropdown. How to use them together? Thanks.

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

        You don’t. QBtnDropdown offers you a default slot to add “items” (to the underlying QMenu). All you need is a QList with QItems. In other words, QMenu is already being used in the QBtnDropdown.

        https://github.com/quasarframework/quasar/blob/22cb98e69e867a84f87ed10935ef8c24ba3f81f9/ui/src/components/btn/QBtnDropdown.js#L8

        Scott

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

          @s-molinari said in QMenu and QBtnDropdown. How?:

          You don’t. QBtnDropdown offers you a default slot to add “items” (to the underlying QMenu). All you need is a QList with QItems. In other words, QMenu is already being used in the QBtnDropdown.

          https://github.com/quasarframework/quasar/blob/22cb98e69e867a84f87ed10935ef8c24ba3f81f9/ui/src/components/btn/QBtnDropdown.js#L8

          Scott

          thx

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