Skip to main content
Version: 3.1.0-Beta 🚧

Star Rating

The Star Rating component can be used to display as well as input ratings. The component 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 changeTriggers whenever the user clicks a star.
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
valueHolds the value entered by the user whenever a rating is added on the component.Accessible dynamically with JS (for e.g., {{components.starrating1.value}}).

General

Tooltip

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

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

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles

Style
Description
Default Value
Star ColorDisplay color of the star. Change color by providing Hex color code or choosing one from the picker.default: #ffb400 (color hex).
Label colorChange the color of label in component by providing Hex color code or choosing one from the picker.
VisibilityToggle on or off to control the visibility of the component. You can programmatically change its value by clicking on the fx button next to it. If {{false}} the component 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 component 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 component will be locked and becomes non-functional.By default, its value is set to {{false}}.