Rating Properties
Name | Type | Default | Description |
---|---|---|---|
Disabled | bool | false | Disables the interaction with the element. |
Locale | string | "en" | Sets or gets the language. Used in conjunction with the property messages. |
Max | int | Determines the number of stars that will be displayed. | |
Messages | object | N/A | Sets or gets an object specifying strings used in the element that can be localized. Used in conjunction with the property locale. |
Name | string | "" | The name of the element. Used when submiting data inside a Form. |
RightToLeft | bool | false | Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. |
Theme | string | "" | Determines the theme. Theme defines the look of the element |
Unfocusable | bool | false | If is set to true, the element cannot be focused. |
Value | int | Determines the number of stars that will be marked as active. |
Rating Methods
Name | Type | Arguments | Description |
---|---|---|---|
GetValue | int | N/A | Get the value of the rating. |
GetValueAsync() | Task<int> | 'N/A' | Gets the "Value" property as Task<int>. |
Refresh | void | 'N/A' | Refreshes the Blazor Component. Performs a layout of the HTML Elements and recalculates the measurements. |
Render | void | 'N/A' | Re-renders the Blazor Component. This method will make a full re-render. |
SetValue | void | int value | Sets the value of the rating.Args: int value - Sets the value of the rating |
StateHasChanged | void | 'N/A' | Refreshes the state and Re-renders the Blazor Component, if necessary. |
Rating Events
Name | Type | Description | Event Detail |
---|---|---|---|
OnChange | EventCallback<Event> | This event is triggered when the value of the slider is changed. | dynamic value- A numeric value indicating the scroll position., dynamic oldValue- A numeric value indicating the previous scroll position. |
Changed | event RatingChangedEventHandler | This event is triggered when the value of the slider is changed. | RatingChangedEventArgs |