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 |
---|---|
Value Destination Types | 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. Note: Value Destination Model field appears when you select "Model" as the Value Destination Type. |
Value Destination Variables | Here you can choose the variable option from this list. Note: This appears when you select "Variable" as the Value Destination Type. |
Value Destination Model |
|
Size | You can adjust the rating size to XX-Small, X-Small, Small, Medium, or Large. |
UI Attributes:
Attribute Group | Attribute Name | Description |
---|---|---|
UI | Component Size |
Note: Currently, we support Component Size |
Padding Location | "Padding Location" typically refers to the configuration of spacing around elements | |
Padding Size | "Padding Size" refers to the amount of space added inside an element, between the element's content and its border or edge. | |
Margin Location | "Margin Location" refers to the spacing around the outside edge of an element | |
Margin Size | "Margin Size" refers to the amount of space around the outside edges of an element, | |
Style |
| |
Classes |
|
Visibility
Attribute Name | Description |
Visibility Type | It determines whether a component is visible on the layout. It offers the following visibility types:
|
Disability
Attribute Name | Description |
Disability Type | It determines whether a component is disable on the layout. It offers the following visibility types:
|
Component
Attribute Name | Description |
---|---|
Component Label | It simply shows the name of the Rating component. |
Events:
Events are essentially the automation of invoking the component's actions.
Here, only onload event actions are available for this components.
In the image below, you can select the created workflows.
Note: "You need to create a workflow for selecting from this list.
For more information about Workflow check this out.
Reference: Workflow
Onload Event:
We have an onload event that runs when the component is loaded
For example, when a form is loaded, you can choose fields to be prepopulated by mapping field values using input mapping at the time the form component is loaded.
Input Mapping
Input Mapping: Whenever an event is triggered and you want to pass data to destinations such as models, variables, or components, you can use input mapping to achieve that.
Add Comment