Class MudRadioGroup<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A group of MudRadio<T> components.
public class MudRadioGroup<T> : MudFormComponent<T, T>, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IFormComponent, IAsyncDisposable
Type Parameters
T
The type of value being selected.
- Inheritance
-
MudFormComponent<T, T>MudRadioGroup<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
MudRadioGroup()
public MudRadioGroup()
Properties
ChildContent
The content within this button group.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Remarks
Usually a set of MudRadio<T> components.
Classname
protected string Classname { get; }
Property Value
Disabled
Prevents the user from interacting with this group.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
Remarks
Defaults to false
.
InputClass
The CSS classes for this button group.
[Parameter]
[Category("Appearance")]
public string? InputClass { get; set; }
Property Value
Remarks
Multiple classes must be separated by spaces.
InputStyle
The CSS styles for this button group.
[Parameter]
[Category("Appearance")]
public string? InputStyle { get; set; }
Property Value
Name
The unique name for this button group.
[Parameter]
[Category("Behavior")]
public string Name { get; set; }
Property Value
ReadOnly
Prevents the selected value from being changed.
[Parameter]
[Category("Behavior")]
public bool ReadOnly { get; set; }
Property Value
Remarks
Defaults to false
.
Value
The current value.
[Parameter]
[Category("Data")]
public T? Value { get; set; }
Property Value
- T
Remarks
When this value changes, the ValueChanged event occurs.
ValueChanged
Occurs whenever Value has changed.
[Parameter]
public EventCallback<T> ValueChanged { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
CheckGenericTypeMatch(object)
Tests whether the specified value is valid for this button.
public void CheckGenericTypeMatch(object selectItem)
Parameters
selectItem
objectThe value to examine.
Exceptions
- GenericTypeMismatchException
Raised if the specified value does not match
T
.
ResetValueAsync()
protected override Task ResetValueAsync()
Returns
SetSelectedOptionAsync(T?, bool, bool)
protected Task SetSelectedOptionAsync(T? option, bool updateRadio, bool updateValue = true)
Parameters
Returns
SetSelectedRadioAsync(MudRadio<T>?, bool)
protected Task SetSelectedRadioAsync(MudRadio<T>? radio, bool updateOption)