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

    Separators / sections for q-select and q-dialog-select

    Help
    q-dialog-select q-select
    4
    6
    2120
    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.
    • D
      dsl101 last edited by

      Is it possible? I have both kinds (referencing the same model), and would love to be able to separate the dozen or so options (type="checkbox") into 3 groups with a label above each. Is that possible?

      If not, maybe it could be done by binding something like this to :options:

      selectOptions: {
        'Section 1': [
          {
            label: 'Google',
            value: 'goog'
          },
          {
            label: 'Facebook',
            value: 'fb'
          }
        ],
        'Section 2': [
          {
            label: 'Something else'
            value: 'other'
          }
        ]
      }
      

      i.e. if options is an object rather than an array, assume the object keys are the sections labels and the contents of each item are the options for that section…

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

        Unfortunately with QSelect, there isn’t (yet) a method to add sections.

        If you’d like, you could start an issue for the suggestion: https://github.com/quasarframework/quasar/issues/new

        😄

        Scott

        1 Reply Last reply Reply Quote 0
        • D
          dsl101 last edited by

          Many thanks - I’ve posted a feature request: https://github.com/quasarframework/quasar/issues/557

          1 Reply Last reply Reply Quote 1
          • rstoenescu
            rstoenescu Admin last edited by

            Saw it. Will do. Thanks for filing the Github ticket!

            1 Reply Last reply Reply Quote 0
            • J
              jeffatpf last edited by

              Is there an example of how to do this with V1 scoped slots?

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

                This seem to have worked.

                https://codepen.io/smolinari/pen/MdXyJR

                Scott

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