Table of Contents

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

string

CheckedIconClassName

protected string CheckedIconClassName { get; }

Property Value

string

ChildContent

Child content of component.

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

ChildSpanClassName

protected string ChildSpanClassName { get; }

Property Value

string

Classname

protected string Classname { get; }

Property Value

string

Color

The color of the component. It supports the theme colors.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

Dense

If true, compact padding will be applied.

[Parameter]
[Category("Appearance")]
public bool Dense { get; set; }

Property Value

bool

Disabled

If true, the button will be disabled.

[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }

Property Value

bool

IconClassName

protected string IconClassName { get; }

Property Value

string

Placement

The position of the child content.

[Parameter]
[Category("Behavior")]
public Placement Placement { get; set; }

Property Value

Placement

RadioIconsClassNames

protected string RadioIconsClassNames { get; }

Property Value

string

RightToLeft

[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }

Property Value

bool

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

bool

Size

The Size of the component.

[Parameter]
[Category("Appearance")]
public Size Size { get; set; }

Property Value

Size

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

Color?

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

Task

OnAfterRenderAsync(bool)

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

SelectAsync()

public Task SelectAsync()

Returns

Task