Vuetify: [Feature Request] Optgroups for VSelects

Created on 2 Sep 2018  路  2Comments  路  Source: vuetifyjs/vuetify

Problem to solve

I'd like to recreate something similar to HTML optgroups for select controls. Unfortunately, this doesn't seem to be supported.

Proposed solution

One way this could be implemented is by giving a data structure like the following:

{"group title 1": ["label A", "label B"], "group 2": [...]}
VSelect feature

Most helpful comment

Similar: #3049

If you only need one level you can use subheadings: https://vuetifyjs.com/en/components/autocompletes#example-scoped-slots

All 2 comments

Yeah I think it will be nice to group with optgroup option.

Similar: #3049

If you only need one level you can use subheadings: https://vuetifyjs.com/en/components/autocompletes#example-scoped-slots

Was this page helpful?
0 / 5 - 0 ratings