I am using vue-select and I am looking to display my select box like this:
label 1
item 1
item 2
item 3
item 4
label 2
item 1
item 2
item 3
item 4
etc.etc.
Expecting:
- labels can't be selected and only items can be selected
- on selection sends back {label:value} (strings)
I've built my JSON as follows:
[
{
"label":"one",
"values":[
"value 1",
"value 2",
"..."
]},
{"label":"two",
"values":[
"value 1",
"value 2",
"..."
]},
"..."
}
]
Which is exactly the format requested, yet for some reason I am not using one of their props right. Would appreciate a nudge here if you came across this already, thanks.