Skip to main content
Version: 2.35.0

Star Rating

The Star Rating widget can be used to display as well as input ratings. The widget supports half stars, and the number of stars can be set too.

Properties

Property
Description
Expected Value
LabelThe text to be used as the label for the star rating.This field expects a String value.
Number of starsInitial number of stars in the list on initial load. default: 5.This field expects an integer value.
Default no of selected starsThis property specifies the default count of stars that are selected on the initial load. default: 5 (integer).This field expects an integer value.
Enable half starToggle on to allow selection of half stars. default: false (bool).Click on Fx to programmatically define the value {{true}} or {{false}}.
TooltipsThis is used for displaying informative tooltips on each star, and it is mapped to the index of the star.default: [] (array of strings ).

Events

Event
Description
On ChangeThis event is triggered when a star is clicked.
info

Check Action Reference docs to get the detailed information about all the Actions.

Component Specific Actions (CSA)

There are currently no CSA (Component-Specific Actions) implemented to regulate or control the component.

Exposed Variables

Variables
Description
How To Access
valueThis variable holds the value whenever a rating is added on the component. The variable holds a numerical value.Access the value dynamically using JS: {{components.colorpicker1.selectedColorHex}}

General

Tooltip

A Tooltip is often used to specify extra information about something when the user hovers the mouse pointer over the widget.

Under the General accordion, you can set the value in the string format. Now hovering over the widget will display the string as the tooltip.

Layout

Layout
Description
Expected Value
Show on desktopToggle on or off to display desktop view.You can programmatically determining the value by clicking on Fx to set the value {{true}} or {{false}}
Show on mobileToggle on or off to display mobile view.You can programmatically determining the value by clicking on Fx to set the value {{true}} or {{false}}

Styles

Style
Description
Default Value
Star ColorDisplay color of the star. default: #ffb400 (color hex). Change color by providing Hex color code or choosing one from the picker.
Label colorChange the color of label in widget by providing Hex color code or choosing one from the picker.
VisibilityToggle on or off to control the visibility of the widget. You can programmatically change its value by clicking on the Fx button next to it. If {{false}} the widget will not be visible after the app is deployed.By default, it's set to {{true}}
DisableThis is off by default, toggle on the switch to lock the widget and make it non-functional. You can also programmatically set the value by clicking on the Fx button next to it. If set to {{true}}, the widget will be locked and becomes non-functional.By default, its value is set to {{false}}