|
<div>
<label> Selected Rate Type: @SelectdRateType</label>
<p></p>
<SfRadioButton Label="Consignment" Name="RateTypeRadio" Value="Consignment" @bind-Checked="@SelectdRateType">
</SfRadioButton>
<SfRadioButton Label="Unit" Name="RateTypeRadio" Value="Unit" @bind-Checked="@SelectdRateType">
</SfRadioButton>
<p></p>
<button style="width:auto" class="e-btn" @onclick="@ButtonClickedHandler">
Reset
</button>
</div>
@code {
public enum RateTypes
{
Consignment,
Unit
}
public RateTypes SelectdRateType { get; set; } = RateTypes.Consignment;
private void ButtonClickedHandler(MouseEventArgs e)
{
SelectdRateType = RateTypes.Consignment;
}
} |
Ever since the first edition of Inside Macintosh in 1984, the rule has been the same for when to use checkboxes versus radio buttons. All subsequent GUI standards and the official W3C Web standards have included the same definition of these two controls: