TelerikRating
A component that lets you capture and display a rating with keyboard, mouse, and hover interactions. Supports item count, selection and precision modes, disabled/readonly states, templates, ARIA labeling, and change callbacks.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikRating : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikRating
Implements:
Inherited Members
Constructors
public TelerikRating()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
[Accessibility] Describe the aria-label attribute for the component.
[Parameter]
public string AriaLabel { get; set; }
[Accessibility] Describe the aria-labelledby attribute for the component.
[Parameter]
public string AriaLabelledBy { get; set; }
Gets or sets the description used for the data-smart-paste attribute.
[Parameter]
public string DataSmartPasteDescriptionAttribute { get; set; }
Defines whether the component should be rendered in a disabled state.
[Parameter]
public bool Enabled { get; set; }
Enables WebMCP tool registration for this Rating.
When true, Rating operations are exposed as tools discoverable by AI models through the browser.
Default value is false.
[Parameter]
public bool EnableWebMcpTools { get; set; }
Defines the interval for which the value should change on hover.
[Parameter]
public int HoverThrottleInterval { get; set; }
Defines the Item Template of the component.
[Parameter]
public RenderFragment<RatingItemTemplateContext> ItemTemplate { get; set; }
Defines the maximum number of items for the component.
[Parameter]
public double Max { get; set; }
Provides configuration for WebMCP tools, such as a Name to distinguish this Rating from others on the same page.
[Parameter]
public RenderFragment RatingSettings { get; set; }
[Accessibility] Defines whether the component should be rendered in a readonly state.
[Parameter]
public bool ReadOnly { get; set; }
Controls the selection mode of the component. Available options are: Single and Continuous.
[Parameter]
public RatingSelectionMode SelectionMode { get; set; }
[Parameter]
public EventCallback<double> ValueChanged { get; set; }