Rating
Overview
Rating component is used to collect and display user feedback in the form of star ratings. This component allows users to rate items, such as products, services, or features, providing valuable insights and feedback.
For example, in a product review section of an e-commerce application, the Rating component can be used to display user feedback on products. Customers can rate their purchased items from 1
to 5
stars, and the average rating will be shown alongside the product details to help other users make informed decisions
Attributes
Attributes are the options available for each component, allowing you to customize its appearance and functionality. They help you tailor the look and behavior of your components to fit your needs.
Basic:
Attribute Name | Description |
---|---|
Component Size |
For example, |
Display As | Display As allows you to select data type options to define how the field will be display. For example, if you have a text field and choose to display it as a picklist, the data will be stored as text but displayed as a picklist |
Label | Here user can add label name for Rating. |
Placeholder | A placeholder is a temporary value or text displayed in an input field. |
Type | Here user can select the different data type. |
Dest Type | This attribute specifies whether the user wants to store a value in a variable or a model. Model: Here, you can select "Model" as the value destination. |
Dest Var | Here you can choose the variable option from this list. |
Value Destination Model |
|
Size | You can adjust the rating size to XX-Small, X-Small, Small, Medium, or Large. |
Validation:
Attribute Name | Description |
---|---|
Required Type | You can make the field required by setting the required type.
|
Required Error | Users can add a custom error message for the required field. |
Base UI:
Attribute Name | Description |
---|---|
Padding Location |
|
Padding Size |
|
Margin Location |
|
Margin Size |
|
Style |
|
Classes |
|
Hide Space | The |
UI State:
Attribute Name | Description |
Visibility Type | It determines whether a component is visible on the layout. It offers the following visibility types:
|
Read Only Type | It specifies whether a component can be edited by users. It offers the following options:
You can explore more about conditional visibility |
Disability Type | It determines whether a component is disable on the layout. It offers the following visibility types:
|
UI:
Attribute Name | Description |
---|---|
Layout | Field Layout allows you to arrange fields on the form. |
Is Copy Enabled | After marking the checkbox as true, a copy icon will appear beside the name field. |
Help Text | Provides additional guidance or information about a field or element to assist users in understanding how to complete it or what data is expected. |
Layout:
Attributes | Description |
---|---|
None | In the None layout, only the input/output field is visible, with no label displayed. |
Stacked | In a stacked layout, the input/output field is placed below the field label, with a small margin around the label. |
Horizontal | In a horizontal arrangement, the input/output field is placed before the field label, with a small margin around the label. |
Single Column | In a Single Column layout, the input/output field is larger than the field label, and displayed in single column grid. |
No Label | In the No Label layout, only the input/output field is visible, without the label. |
Events:
Events are essentially the automation of invoking the component's actions.
Here, we have onload event, click event actions are available for this components.
Icon Events | Description |
---|---|
onload | This event action is triggered when the Rating component is loaded. |
click | This event action is triggered when the Rating component is clicked. |