RadioButton Blazor API

RadioButton Properties

NameTypeDefaultDescription
CheckedboolfalseSets or gets the check state.
CheckModeCheckModeCheckMode.BothSets or gets the part that toggles the element.
ClickModeClickModeClickMode.ReleaseSets the click mode of the radio button.
DisabledboolfalseEnables or disables the ratio button.
GroupNamestring""Sets or gets the widget's group name.
InnerHTMLstring""Sets or gets the widget's innerHTML.
Localestring"en"Sets or gets the language. Used in conjunction with the property messages.
MessagesobjectN/ASets an object with string values, related to the different states of passwords strength.
Namestring""Sets or gets the widget's name.
ReadonlyboolfalseIf the custom element is readonly, it cannot be interacted with.
RightToLeftboolfalseSets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
Themestring""Determines the theme. Theme defines the look of the element
UnfocusableboolfalseIf is set to true, the element cannot be focused.
Valuestring""Sets or gets the widget's value.

RadioButton Events

NameTypeDescriptionEvent Detail
OnChangeEventCallback<Event>This event is triggered when the widget is checked/unchecked.dynamic value- A boolean value indicating the new state of the button ( checked or not )., dynamic oldValue- A boolean value indicating the previous state of the button ( checked or not )., dynamic changeType- A string flag indicating whether the change event was triggered via API or an event.
Changedevent RadioButtonChangedEventHandlerThis event is triggered when the widget is checked/unchecked.RadioButtonChangedEventArgs
OnCheckValueEventCallback<Event>This event is triggered when the widget is checked.dynamic changeType- A string flag indicating whether the change event was triggered via API or an event.
CheckValuedevent RadioButtonCheckValuedEventHandlerThis event is triggered when the widget is checked.RadioButtonCheckValuedEventArgs
OnUncheckValueEventCallback<Event>This event is triggered when the widget is unchecked.dynamic changeType- A string flag indicating whether the change event was triggered via API or an event.
UncheckValuedevent RadioButtonUncheckValuedEventHandlerThis event is triggered when the widget is unchecked.RadioButtonUncheckValuedEventArgs

Enums

CheckMode

CheckMode.Both
CheckMode.Input
CheckMode.Label

ClickMode

ClickMode.Hover
ClickMode.Press
ClickMode.Release
ClickMode.PressAndRelease