UNPKG

quasar

Version:

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

135 lines 3.73 kB
{ "type": "component", "meta": { "docsUrl": "https://v1.quasar.dev/vue-components/rating" }, "behavior": { "$listeners": { "desc": "All native events are being propagated (you don't need the '.native' modifier)" } }, "props": { "size": { "type": "String", "desc": "Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl)", "examples": [ "16px", "2rem", "xs", "md" ], "category": "style" }, "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": "Number", "examples": [ ":value=\"2\"" ] }, "max": { "type": [ "Number", "String" ], "desc": "Number of icons to display", "default": 5, "examples": [ "3", ":max=\"5\"" ], "category": "general" }, "icon": { "type": [ "String", "Array" ], "desc": "Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix; If an array is provided each rating value will use the corresponding icon in the array (0 based)", "examples": [ "map", "ion-add", "img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg", "img:statics/path/to/some_image.png" ], "category": "content" }, "icon-selected": { "type": [ "String", "Array" ], "desc": "Icon name following Quasar convention to be used when selected (optional); make sure you have the icon library installed unless you are using 'img:' prefix; If an array is provided each rating value will use the corresponding icon in the array (0 based)", "examples": [ "map", "ion-add", "img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg", "img:statics/path/to/some_image.png" ], "category": "content", "addedIn": "v1.1.0" }, "color": { "type": [ "String", "Array" ], "desc": "Color name for component from the Quasar Color Palette; v1.5.0+: If an array is provided each rating value will use the corresponding color in the array (0 based)", "examples": [ "primary", "teal-10", "primary", "teal-10", "[\"accent\", \"grey-7\"] " ], "category": "style" }, "color-selected": { "type": [ "String", "Array" ], "desc": "Color name from the Quasar Palette for selected icons", "examples": [ "primary", "teal-10" ], "category": "style", "addedIn": "v1.5.0" }, "no-reset": { "type": "Boolean", "desc": "When used, disables default behavior of clicking/tapping on icon which represents current model value to reset model to 0", "category": "model" }, "readonly": { "type": "Boolean", "desc": "Put component in readonly mode", "category": "state" }, "disable": { "type": "Boolean", "desc": "Put component in disabled mode", "category": "state" } }, "slots": { "tip-[index]": { "desc": "Slot to define the tooltip of icon at '[index]' (1-based); Suggestion: QTooltip", "addedIn": "v1.5.0" } }, "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 } } } } }