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

    Q-select: slot above/beneath the options list ?

    Framework
    3
    5
    588
    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.
    • B
      bobdylan last edited by

      I created a Q-select with checkboxes by using the option-slot.
      Now I would like to add a div above or beneath the options list, with buttons to select/deselect all items.

      I could not find slot names to do this.
      Any ideas?

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

        Um, never done it myself, but if you have control of the content for options with the options slot, couldn’t you create your own select/ deselect “option” within those options?

        Scott

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

          @s-molinari i tried it earlier, there’s some quirk not showing the the buttons/first index first time the options menu gets shown :x https://codepen.io/metalsadman/pen/ydWbza?editors=1010, probably coz need recalculating the height, or a different logic.

          1 Reply Last reply Reply Quote 0
          • B
            bobdylan last edited by

            Thank you, but I want the buttons to be visible all the time.
            By using metalsadman’s way they disappear when you scroll the list.
            Even when I make the div fixed, it disappears after a while.

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

              Not doable with scoped slot atm i think, better use other slot like prepend, after et… for your select/deselect func, you can do some conditional to hide/show the buttons when your menu is shown/hidden.

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