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 with nested or grouped data and filtering?

    Help
    2
    3
    1655
    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.
    • J
      jammy-git last edited by

      I’ve used the select2.js plugin on other projects but I would love to maintain my use of the Quasar framework on this particular project.

      I need to have a q-select field, but with option groups to allow the data to be nested. Only the child items should be selectable (as per native optgroups) and preferably it should all be filterable.

      Is this possible with a q-select? I couldn’t see any way of using nested data or native optgroups?

      1 Reply Last reply Reply Quote 0
      • J
        jammy-git last edited by

        If anyone’s interested, I tried both vue-multiselect and vue-treeselect, but none of them gave me the exact functionality of grouping, with unselectable parent items and filtering on all items shown. So I mocked up what I needed using a q-select and q-items: https://codepen.io/jammy-git/pen/KKdarbP?editors=1011

        1 Reply Last reply Reply Quote 1
        • X
          xji last edited by

          Thanks for sharing your solution. There is another example solution under a similar git issue: https://github.com/quasarframework/quasar/issues/5724#issuecomment-570695565

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