You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Rating/Rating.razor

14 lines
621 B

2 years ago
@namespace Connected.Components
@inherits UIComponent
<span tabindex="@(Disabled?-1:0)" @onkeydown="HandleKeyDown" @attributes="UserAttributes" class="@ClassName" style="@Style" >
<CascadingValue Value="this" >
@for (int i = 1; i <= MaxValue; i++)
{
<RatingItem Class="@RatingItemsClass" Style="@RatingItemsStyle" ItemValue="@i"
DisableRipple="DisableRipple" Disabled="Disabled" ReadOnly="ReadOnly" Color="Color"
Size="Size" ItemClicked="HandleItemClicked" ItemHovered="HandleItemHovered"/>
}
</CascadingValue>
</span>