UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

138 lines 3.53 kB
{ "type": "component", "meta": { "docsUrl": "https://v1.quasar.dev/vue-components/checkbox" }, "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", "required": true, "type": [ "Any", "Array" ], "examples": [ "false", "['car', 'building']" ] }, "val": { "type": "Any", "desc": "Works when model ('value') is Array. It tells the component which value should add/remove when ticked/unticked", "examples": [ "car" ], "category": "model" }, "true-value": { "type": "Any", "desc": "What model value should be considered as checked/ticked/on?", "default": true, "examples": [ "Agreed" ], "category": "model" }, "false-value": { "type": "Any", "desc": "What model value should be considered as unchecked/unticked/off?", "default": false, "examples": [ "Disagree" ], "category": "model" }, "label": { "type": "String", "desc": "Label to display along the component (or use the default slot instead of this prop)", "examples": [ "I agree with the Terms and Conditions" ], "category": "label" }, "left-label": { "type": "Boolean", "desc": "Label (if any specified) should be displayed on the left side of the component", "category": "label" }, "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 the component is unticked/ off?", "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" }, "disable": { "type": "Boolean", "desc": "Put component in disabled mode", "category": "state" }, "tabindex": { "type": [ "Number", "String" ], "desc": "Tabindex HTML attribute value", "examples": [ "0", "100" ], "category": "general" }, "indeterminate-value": { "type": "Any", "desc": "What model value should be considered as 'indeterminate'?", "default": null, "examples": [ 0, "not_answered" ], "category": "behavior" }, "toggle-indeterminate": { "type": "Boolean", "desc": "When user clicks/taps on the component, should we toggle through the indeterminate state too?", "category": "behavior" } }, "slots": { "default": { "desc": "Default slot can be used as label, unless 'label' prop is specified; Suggestion: string" } }, "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 } } } }, "methods": { "toggle": { "desc": "Toggle the state (of the model)" } } }