quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
153 lines (128 loc) • 3.36 kB
JSON
{
"mixins": [ "mixins/form" ],
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/slider"
},
"props": {
"value": {
"type": "Number",
"desc": "Model of the component (must be between min/max); Either use this property (along with a listener for 'input' event) OR use v-model directive",
"examples": [ "v-model=\"positionModel\"" ],
"category": "model"
},
"min": {
"type": "Number",
"desc": "Minimum value of the model",
"default": 0,
"examples": [ ":min=\"0\"" ],
"category": "model"
},
"max": {
"type": "Number",
"desc": "Maximum value of the model",
"default": 100,
"examples": [ ":max=\"100\"" ],
"category": "model"
},
"step": {
"type": "Number",
"desc": "Specify step amount between valid values (> 0.0); When step equals to 0 it defines infinite granularity",
"default": 1,
"examples": [ ":step=\"1\"" ],
"category": "model"
},
"reverse": {
"type": "Boolean",
"desc": "Work in reverse (changes direction)",
"category": "behavior",
"addedIn": "v1.5.0"
},
"vertical": {
"type": "Boolean",
"desc": "Display in vertical direction",
"category": "behavior",
"addedIn": "v1.10.0"
},
"color": {
"extends": "color"
},
"label": {
"type": "Boolean",
"desc": "Popup a label when user clicks/taps on the slider thumb and moves it",
"category": "content"
},
"label-color": {
"extends": "color"
},
"label-text-color": {
"extends": "color",
"addedIn": "v1.1.0"
},
"label-value": {
"type": [ "String", "Number" ],
"desc": "Override default label value",
"examples": [
":label-value=\"model + 'px'\""
],
"category": "content"
},
"label-always": {
"type": "Boolean",
"desc": "Always display the label",
"category": "behavior|content"
},
"markers": {
"type": "Boolean",
"desc": "Display markers on the track, one for each possible value for the model",
"category": "content"
},
"snap": {
"type": "Boolean",
"desc": "Snap on valid values, rather than sliding freely; Suggestion: use with 'step' prop",
"category": "behavior"
},
"thumb-path": {
"type": "String",
"desc": "Set custom thumb svg path",
"default": "M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0",
"examples": [ "M5 5 h10 v10 h-10 v-10" ],
"category": "style",
"addedIn": "v1.5.10"
},
"dark": {
"extends": "dark"
},
"dense": {
"extends": "dense"
},
"disable": {
"extends": "disable"
},
"readonly": {
"extends": "readonly"
},
"tabindex": {
"extends": "tabindex"
}
},
"events": {
"input": {
"extends": "input"
},
"change": {
"extends": "input",
"desc": "Emitted on lazy model value change (after user slides then releases the thumb)"
},
"pan": {
"desc": "Triggered when user starts panning on the component",
"params": {
"phase": {
"type": "String",
"desc": "Phase of panning",
"values": [ "start", "end" ]
}
},
"addedIn": "v1.14.0"
}
}
}