Class MudRadio<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudRadio<T> : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable
Type Parameters
T
- Inheritance
-
MudRadio<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
MudRadio()
public MudRadio()
Properties
ButtonClassname
protected string ButtonClassname { get; }
Property Value
CheckedIconClassName
protected string CheckedIconClassName { get; }
Property Value
ChildContent
Child content of component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
ChildSpanClassName
protected string ChildSpanClassName { get; }
Property Value
Classname
protected string Classname { get; }
Property Value
Color
The color of the component. It supports the theme colors.
[Parameter]
[Category("Appearance")]
public Color Color { get; set; }
Property Value
Dense
If true, compact padding will be applied.
[Parameter]
[Category("Appearance")]
public bool Dense { get; set; }
Property Value
Disabled
If true, the button will be disabled.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
IconClassName
protected string IconClassName { get; }
Property Value
Placement
The position of the child content.
[Parameter]
[Category("Behavior")]
public Placement Placement { get; set; }
Property Value
RadioIconsClassNames
protected string RadioIconsClassNames { get; }
Property Value
RightToLeft
[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }
Property Value
Ripple
Gets or sets whether to show a ripple effect when the user clicks the button. Default is true.
[Parameter]
[Category("Appearance")]
public bool Ripple { get; set; }
Property Value
Size
The Size of the component.
[Parameter]
[Category("Appearance")]
public Size Size { get; set; }
Property Value
UncheckedColor
The base color of the component in its none active/unchecked state. It supports the theme colors.
[Parameter]
[Category("Appearance")]
public Color? UncheckedColor { get; set; }
Property Value
Value
The value to associate to the button.
[Parameter]
[Category("Behavior")]
public T? Value { get; set; }
Property Value
- T
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Dispose()
public void Dispose()
HandleKeyDownAsync(KeyboardEventArgs)
protected Task HandleKeyDownAsync(KeyboardEventArgs keyboardEventArgs)
Parameters
keyboardEventArgs
KeyboardEventArgs
Returns
OnAfterRenderAsync(bool)
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
bool
Returns
OnInitializedAsync()
protected override Task OnInitializedAsync()
Returns
SelectAsync()
public Task SelectAsync()