RatingComponent
Represents the Kendo UI Rating component for Angular. Use this component to let users select a rating value.
<kendo-rating [itemsCount]="5" [(value)]="ratingValue"></kendo-rating>
Selector
kendo-rating
Export Name
Accessible in templates as #kendoRatingInstance="kendoRating"
Inputs
Name | Type | Default | Description |
---|---|---|---|
disabled |
|
|
When To disable the component in reactive forms, see Forms Support. |
icon |
|
Sets a custom font icon for the Rating items (see example). | |
itemsCount |
|
|
Sets the number of Rating items (see example). |
label |
|
Sets the label text for the Rating. The text renders in a | |
precision |
|
|
Sets the precision of the Rating (see example). |
readonly |
|
|
When |
selection |
|
|
Sets the selection mode of the Rating (see example). |
svgIcon |
|
Sets a custom SVG icon for the selected or hovered state of the Rating items (see example). | |
svgIconOutline |
|
Sets a custom SVG icon for the default state of the Rating items when not hovered or selected (see example). | |
tabindex |
|
|
Sets the |
value |
|
Sets the initial value of the Rating component.
Use either |
Events
Name | Type | Description |
---|---|---|
valueChange |
|
Fires when the user selects a new value. |
Methods
blur |
---|
Blurs the Rating component. |
focus |
---|
Focuses the Rating component. |