quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
89 lines • 2.44 kB
JSON
{
"type": "component",
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/option-group"
},
"props": {
"value": {
"desc": "Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive",
"category": "model",
"type": "Any",
"examples": [
"v-model=\"group\""
]
},
"options": {
"type": "Array",
"desc": "Array of objects with value and label props. The binary components will be created according to this array",
"examples": [
":options=\"[ { label: 'Option 1', value: 'op1' }, { label: 'Option 2', value: 'op2' }, { label: 'Option 3', value: 'op3' } ]\""
],
"category": "model"
},
"type": {
"type": "String",
"desc": "The type of input component to be used",
"values": [
"radio",
"checkbox",
"toggle"
],
"default": "radio",
"examples": [
"checkbox"
],
"category": "content"
},
"color": {
"type": "String",
"desc": "Color name for component from the Quasar Color Palette",
"examples": [
"primary",
"teal-10"
],
"category": "style"
},
"keep-color": {
"type": "Boolean",
"desc": "Should the color (if specified any) be kept when input components are unticked?",
"category": "behavior"
},
"dark": {
"type": "Boolean",
"desc": "Notify the component that the background is a dark color",
"category": "style"
},
"dense": {
"type": "Boolean",
"desc": "Dense mode; occupies less space",
"category": "style"
},
"left-label": {
"type": "Boolean",
"desc": "Label (if any specified) should be displayed on the left side of the input components",
"category": "content"
},
"inline": {
"type": "Boolean",
"desc": "Show input components as inline-block rather than each having their own row",
"category": "content"
},
"disable": {
"type": "Boolean",
"desc": "Put component in disabled mode",
"category": "state"
}
},
"events": {
"input": {
"desc": "Emitted when the component needs to change the model; Is also used by v-model",
"params": {
"value": {
"type": "Any",
"desc": "New model value",
"required": true
}
}
}
}
}