Class MBRadioButton<TItem>
This is a general purpose Material Theme radio button. Accepts a generic class TItem and displays as checked if Value equals TargetCheckedValue.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBRadioButton<TItem> : InputComponent<TItem>, IDisposable
Type Parameters
Name | Description |
---|---|
TItem |
Properties
| Improve this Doc View SourceDensity
The radio button's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDensity> |
Label
The radio button label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
String |
RadioGroupName
The radio button group name. This is applied to a group of radio buttons so Material Theme can identify them as representing different values of the same property.
Declaration
public string RadioGroupName { get; set; }
Property Value
Type | Description |
---|---|
String |
TargetCheckedValue
Value is set to this when the radio button is clicked. If the consumer sets Value to this the radio state will change to checked, or cleared for any other value.
Declaration
public TItem TargetCheckedValue { get; set; }
Property Value
Type | Description |
---|---|
TItem |
Methods
| Improve this Doc View SourceOnDisabledSetCallback()
Callback for value the Disabled value setter.
Declaration
protected void OnDisabledSetCallback()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<TItem>.OnInitializedAsync()
|
Improve this Doc
View Source
OnParametersSetAsync()
Declaration
protected override async Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<TItem>.OnParametersSetAsync()
|
Improve this Doc
View Source
OnValueSetCallback()
Callback for value the value setter.
Declaration
protected void OnValueSetCallback()