Blazorise Rating API
Explore the Blazorise Rating API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Rating documentation.
API
Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
Color |
Not work now |
Color | Color.Warning |
Disabled |
Prevent the user interactions and make it appear lighter. |
bool | false |
EmptyIcon |
Specifies the non-selected icon name. |
object | 286 |
EmptyIconStyle |
Specifies the non-selected icon style. |
IconStyle? | null |
FullIcon |
Specifies the selected icon name. |
object | 286 |
FullIconStyle |
Specifies the selected icon style. |
IconStyle? | null |
Intent |
Not work now |
Intent | null |
MaxValue |
Maximum rating value that is allowed to be selected. Default is 5. |
int | 5 |
RatingItemsClass |
User class names for RatingItems, separated by space |
string | |
RatingItemsStyle |
User styles for RatingItems. |
string | |
ReadOnly |
Prevent the user interactions and make it appear normal. |
bool | false |
SelectedValue |
Specifies the currently selected rating value. |
int | 0 |
Events
| Event | Description | Type |
|---|---|---|
GetTooltip |
Expression that provides the tooltip for the rating item to have additional user-friendly information. RemarksThe expression receives the rating item Value to determine the result. |
Func<int, RatingTooltip> |
HoveredValueChanged |
Occurs after the HoveredValue has changed. |
EventCallback<int?> |
SelectedValueChanged |
Occurs after the SelectedValue has changed. |
EventCallback<int> |
Methods
| Method | Description | Return | Parameters |
|---|---|---|---|
IsHoveredRange |
Indicates if item value is in the hovered range. | bool | int value |
IsSelectedRange |
Indicates if item value is in the selected range. | bool | int value |