Class MudRatingItem
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A clickable item as part of a MudRating.
public class MudRatingItem : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudRatingItem
- Implements
- Inherited Members
- Extension Methods
Constructors
MudRatingItem()
public MudRatingItem()
Properties
ClassName
The CSS classes applied to this component.
protected string ClassName { get; }
Property Value
Color
The color of this item.
[Parameter]
public Color Color { get; set; }
Property Value
Remarks
Disabled
Prevents the user from interacting with this item, and uses a disabled style.
[Parameter]
public bool Disabled { get; set; }
Property Value
Remarks
Defaults to false
.
ItemClicked
Occurs when this item is clicked.
[Parameter]
public EventCallback<int> ItemClicked { get; set; }
Property Value
Remarks
When clicked, the SelectedValue is changed.
ItemHovered
Occurs when the user hovers over this item.
[Parameter]
public EventCallback<int?> ItemHovered { get; set; }
Property Value
Remarks
When hovered, the MudBlazor.MudRating.HoveredValue is changed.
ItemValue
The value for this item.
[Parameter]
public int ItemValue { get; set; }
Property Value
Remarks
Defaults to the index of this item in the parent MudRating. (e.g. The 3rd item has a value of 3
.)
ReadOnly
Prevents thid item from being changed.
[Parameter]
public bool ReadOnly { get; set; }
Property Value
Remarks
Defaults to false
.
Ripple
Show a ripple effect when the user clicks the button.
[Parameter]
public bool Ripple { get; set; }
Property Value
Remarks
Defaults to true
. Can be overridden by Ripple.
Size
The size of this item.
[Parameter]
public Size Size { get; set; }
Property Value
Remarks
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnParametersSet()
protected override void OnParametersSet()