Rating     

Quasar Rating is a Web Component which allows users to rate items, usually knows as “Star Rating”.

Basic Usage

<q-rating v-model="ratingModel" :max="3"></q-rating>
<!-- Disabled State -->
<q-rating
disable
v-model="ratingModel"
:max="3"
></q-rating>

Vue Properties

Vue PropertyTypeDescription
maxNumberNumber of icons to display.
iconStringIcon to use as grade. Default value: grade.
disableBooleanWhen set to true user can not change model value.

Vue Methods

Vue MethodDescription
set(value)Parses and sets that value.

Vue Events

Vue EventDescription
@inputTriggered on model value change with the new value.

Coloring

Use one of the Quasar colors from the Color Palette, like primary, secondary, orange, teal as CSS class:

<q-rating
class="orange"
v-model="ratingModel"
:max="5"
></q-rating>