Skip to main content

Rating

Offers a quick way to gather user feedback.


Rating

The "Rating" widget is a UI element that's used for capturing user feedback for a specific service, product, or item. The widget displays a row of stars (or the icon of your choice), which the user can select to register an appropriate rating. The selected rating can then be used for various purposes, such as feedback, ranking, or recommendations.

Rating Properties

PropertyDescription
Shape
Rating
Choose from one of the available icon options.
Note: On selecting "Custom Icon", you will have to provide the URLs of the custom icons.
W - (Width)Sets the width of the rating icon.
H - (Height)Sets the height of the rating icon.
Half Select Rating
[Checkbox]
Allows the rating to be changed at increments of "Half" a point.
Custom URL
(Selected/Unselected/HalfSelected)
Enter the URLs of the Custom Icons - for the Selected, Unselected, or Half-Selected options in the respective fields.
Selected/Unselected
[Tabs]
Switch between the properties Tabs for the Selected or the Unselected.
Border ColorChanges the border color of the (un)selected icon.
Fill ColorChanges the fill color of the (un)selected icon.
Rating
Selection
(Click/Hover)
Click: Displays the rating only on click.
Hover: Enables a rating preview on mouseover; however, the rating is applied only on click.
Show Rating Value
[Checkbox]
Displays the rating value in numbers.
Text ColorSets the color of the rating value.
Font SizeSets the size of the rating value.

API Methods

setLabel

Sets a Label for the component.

setLabel(label: string): void

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handlers

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onClick

onClick - Sets the actions to be triggered when the component is clicked.