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

ParameterDefaultType
ColorColor.WarningColor

Specifies the contextual or custom CSS color of the rating icons.
Disabledfalsebool

Prevent the user interactions and make it appear lighter.
EmptyIconStarobject

Specifies the non-selected icon name.
EmptyIconStyleRegularIconStyle?

Specifies the non-selected icon style.
FullIconStarobject

Specifies the selected icon name.
FullIconStyleSolidIconStyle?

Specifies the selected icon style.
IntentWarningIntent

Specifies the intent of the rating icons.
Derived from Color.
MaxValue5int

Maximum rating value that is allowed to be selected. Default is 5.
RatingItemsClass—string

User class names for RatingItems, separated by space
RatingItemsStyle—string

User styles for RatingItems.
ReadOnlyfalsebool

Prevent the user interactions and make it appear normal.
SelectedValue0int

Specifies the currently selected rating value.

Events

EventType
GetTooltipFunc<int, RatingTooltip>

Expression that provides the tooltip for the rating item to have additional user-friendly information.
The expression receives the rating item Value to determine the result.
HoveredValueChangedEventCallback<int?>

Occurs after the HoveredValue has changed.
SelectedValueChangedEventCallback<int>

Occurs after the SelectedValue has changed.

Methods

MethodReturnParameters
IsHoveredRangeboolint value

Indicates if item value is in the hovered range.
IsSelectedRangeboolint value

Indicates if item value is in the selected range.