Properties
Name | Type | Default | Description |
---|---|---|---|
Data | |||
SelectedValue |
int |
0 | Selected value. This property is two-way bindable. |
Behavior | |||
Disabled |
bool |
False | If true, the controls will be disabled. |
MaxValue |
int |
5 | Max value and how many elements to click will be generated. Default: 5 |
Name |
string |
"e384073c-4f09-44b6-aecf-d58f48e0b730" | Input name. If not initialized, name will be random guid. |
ReadOnly |
bool |
False | If true, the ratings will show without interactions. |
Appearance | |||
Color |
Color |
Color.Default | The color of the component. It supports the theme colors. |
DisableRipple |
bool |
False | If true, disables ripple effect. |
EmptyIcon |
string |
Non selected item icon. Default @Icons.Material.StarBorder | |
FullIcon |
string |
Selected or hovered icon. Default @Icons.Material.Star | |
RatingItemsClass |
string |
null | User class names for RatingItems, separated by space |
RatingItemsStyle |
string |
null | User styles for RatingItems. |
Size |
Size |
Size.Medium | The Size of the icons. |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |
EventCallbacks
Name | Type | Description |
---|---|---|
HoveredValueChanged |
EventCallback<int?> | Fires when hovered value change. Value will be null if no rating item is hovered. |
SelectedValueChanged |
EventCallback<int> | Fires when SelectedValue changes. |