RatingModel

Interface representing the Rating class.

Properties

allowReset Boolean

Specifies whether to show or hide the button to reset the rating to empty.

Default: false

cssClass String

Specifies CSS classes to customize the appearance of the control.

Default: ""

disabled Boolean

Specifies whether to enable or disable the control.

Default: false

emptyTemplate Function

Specifies a template to customize the appearance of each rating item that is not selected.

Default: ""

enableAnimation Boolean

Specifies whether to add animation to the hover effect.

Default: true

enableRtl Boolean

Specifies whether to render the control in right to left direction.

Default: false

enableSingleSelection Boolean

Specifies whether to select all items up to the selected rating item or only show the selected rating item as selected.

Default: false

enableState Boolean

Specifies whether to persist the state of the control between page loads.

The following properties will be saved to state.
  • value

Default: false

fullTemplate Function

Specifies a template to customize the appearance of each rating item that is selected.

Default: ""

itemsCount Number

Specifies the number of items in the rating.

Default: 5

labelPosition String RatingLabelPosition

Specifies a template to customize the appearance of each rating item that is selected.

Default: Right

labelTemplate Function

Specifies a template to customize the appearance of the label.

Default: ""

locale String

Specifies the culture and localization value for this control, overriding the globally defined value.

Default: en-US

min Number

Specifies the minimum rating that is allowed to be selected.

Default: 0.0

precision String PrecisionType

Specifies the precision type to control the granularity of the rating.

Default: Full

readonly Boolean

Specifies whether the control is readonly disabling all user interaction with the control.

Default: false

showLabel Boolean

Specifies whether to show the label that displays the current value of the rating.

Default: false

showTooltip Boolean

Specifies whether to show the tooltip on rating item hover.

Default: true

tooltipTemplate Function

Specifies a template to customize the appearance of the tooltip.

Default: ""

value String

Specifies the current rating value.

Default: 0.0

visible Boolean

Specifies whether the floating action button should be visible or not.

Default: true

Events

beforeItemRender EmitType<RatingItemEventArgs>

Event callback that is raised before the rendering of each item.

change EmitType<RatingChangeEventArgs>

Event callback that is raised when the textbox value has changed.

created EmitType<CreatedEventArgs>

Event callback that is raised when the control has been created.

hover EmitType<RatingHoverEventArgs>

Event callback that is raised when an item is hovered over.