Rating
The rating is a component that allows you to enter a numerical value based on the number of ”★”.
Property
| No | Item | Input Value | Default Value | Action Property | Type | Action Default Value | Description |
|---|---|---|---|---|---|---|---|
| 1 | ID | String | Auto-generated | id | string | Auto-generated | The [id] property cannot be set by actions. |
| 2 | Label L | String | Rating | label | string | Rating | Component label |
| 3 | Width | Number | 222 | width | number | 222 | Component width |
| 4 | Height | Number | 40 | height | number | 40 | Component height |
| 5 | X | Number | x | number | X coordinate position | ||
| 6 | Y | Number | y | number | Y coordinate position | ||
| 7 | Size | Selection 1. Small 2. Medium 3. Large 4. None | Medium | size | string | medium | When a value other than None is selected, Font Size is disabled.Added in v4.2.0. |
| 8 | Font Size | Number | 16 | fontSize | number | 16 | Font size for label and stars. Only effective when Size is set to None.Added in v4.2.0. |
| 9 | Color | String Color Picker | color | string | Component color | ||
| 10 | Background Color | String Color Picker | backgroundColor | string | Background color | ||
| 11 | Label Color | String Color Picker | labelColor | string | Label color | ||
| 12 | Disabled | Boolean | OFF | disabled | boolean | false | Disabled state |
| 13 | Read Only | Boolean | OFF | readOnly | boolean | false | Read-only state |
| 14 | Visibility | Boolean | ON | visibility | boolean | true | Component show/hide |
| 15 | Horizontal Alignment | Selection 1. Left 2. Center 3. Right | Left | horizontalAlignment | string | left | Horizontal alignment |
| 16 | Vertical Alignment | Selection 1. Top 2. Center 3. Bottom | Top | verticalAlignment | string | top | Vertical alignment |
| 17 | Show Label | Boolean | OFF | showLabel | boolean | false | Label show/hide |
| 18 | Max | Number | 5 | max | number | 5 | Maximum rating value |
| 19 | Precision | Number | 1 | precision | number | 1 | Minimum unit of rating |
| 20 | Helper Text | String | helperText | string | Helper text | ||
| 21 | Value | Number | 5 | value | number | 5 | Rating value |
| 22 | Error | error | boolean | false | Error state | ||
| 23 | Change Event | Selection 1. None 2. UI Script 3. Action 4. Detached Action | None | Event on value change Detached Action became selectable in v4.1.0.UI Script became selectable in v4.2.0. | |||
| 24 | Detached Action | Selection 1. [Detached Action ID] | detachedAction | string | Set a detached action Added in v4.1.0. |
Event
| Event name | Description |
|---|---|
| onchange | Occurs when a value change is made. |